How to export message body and data from Table to Excel from outlook 2010
I usually get Employee announcement in emails and I need to compile excel sheet from all these emails to know change in status of employee from previous line to current line .
Dear Concerned,
The change in status of the following employee has been carried out as per following details:
New Status
Change in Job
Effective Date
01-Feb-2015
Employee Name
Ricky ponting
Employee Code
4982
Designation
Sourcing Executive (Secondment)
Job Group
1A
Department
Sourcing & Supply Chain
Unit
Technology Sourcing
Division
Finance
Location
sydney
Reporting Line
Mr Micheal king
Note: Ricky Ponting was previously working as
Tariff Implementation Support Officer XYZ organization was reporting to
Mr Robin Sing
I need working code that export about HTML table data as well last Note : full line so that I can have an excel file of 2000 Employees whoes status have been changed and I can easily sort out from which previous line they were reporting to new line and I
can get in touch with the new line for any Access rights re-authorization exercise on later stage .
Currently i am using following code thats working fine with the table extraction but NOTE: line is not being fetched with the following code based on following URL
https://techniclee.wordpress.com/2011/10/29/exporting-outlook-messages-to-excel/
Const MACRO_NAME = "Export Messages to Excel (Rev Sajjad)"
Private Sub ExportMessagesToExcel()
Dim olkFld As Outlook.MAPIFolder, _
olkMsg As Outlook.MailItem, _
excApp As Object, _
excWkb As Object, _
excWks As Object, _
arrCel As Variant, _
varCel As Variant, _
lngRow As Long, _
intPtr As Integer, _
intVer As Integer
Set olkFld = Session.PickFolder
If TypeName(olkFld) = "Nothing" Then
MsgBox "You did not select a folder. Operation cancelled.", vbCritical + vbOKOnly, MACRO_NAME
Else
intVer = GetOutlookVersion()
Set excApp = CreateObject("Excel.Application")
Set excWkb = excApp.Workbooks.Add
Set excWks = excWkb.Worksheets(1)
excApp.Visible = True
With excWks
.Cells(1, 1) = "Subject"
.Cells(1, 2) = "Received"
.Cells(1, 3) = "Sender"
.Cells(1, 4) = "New Status"
.Cells(1, 5) = "Effective Date"
.Cells(1, 6) = "Employee Name"
.Cells(1, 7) = "Employee Code"
.Cells(1, 8) = "Designation"
.Cells(1, 9) = "Job Group"
.Cells(1, 10) = "Department"
.Cells(1, 11) = "Unit"
.Cells(1, 12) = "Division"
.Cells(1, 13) = "Location"
.Cells(1, 14) = "Reporting Line"
.Cells(1, 15) = "Note:"
End With
lngRow = 2
For Each olkMsg In olkFld.Items
excWks.Cells(lngRow, 1) = olkMsg.Subject
excWks.Cells(lngRow, 2) = olkMsg.ReceivedTime
excWks.Cells(lngRow, 3) = GetSMTPAddress(olkMsg, intVer)
For intPtr = LBound(arrCel) To UBound(arrCel)
Select Case Trim(arrCel(intPtr))
Case "New Status"
excWks.Cells(lngRow, 4) = arrCel(intPtr + 1)
Case "Effective Date"
excWks.Cells(lngRow, 5) = arrCel(intPtr + 1)
Case "Employee Name"
excWks.Cells(lngRow, 6) = arrCel(intPtr + 1)
Case "Employee Code"
excWks.Cells(lngRow, 7) = arrCel(intPtr + 1)
Case "Designation"
excWks.Cells(lngRow, 8) = arrCel(intPtr + 1)
Case "Job Group"
excWks.Cells(lngRow, 9) = arrCel(intPtr + 1)
Case "Department"
excWks.Cells(lngRow, 10) = arrCel(intPtr + 1)
Case "Unit"
excWks.Cells(lngRow, 11) = arrCel(intPtr + 1)
Case "Division"
excWks.Cells(lngRow, 12) = arrCel(intPtr + 1)
Case "Location"
excWks.Cells(lngRow, 13) = arrCel(intPtr + 1)
Case "Reporting Line"
excWks.Cells(lngRow, 14) = arrCel(intPtr + 1)
Case "Note:"
excWks.Cells(lngRow, 14) = arrCel(intPtr + 1)
End Select
Next
lngRow = lngRow + 1
Next
excWks.Columns("A:W").AutoFit
excApp.Visible = True
Set excWks = Nothing
Set excWkb = Nothing
Set excApp = Nothing
End If
Set olkFld = Nothing
End Sub
Private Function GetSMTPAddress(Item As Outlook.MailItem, intOutlookVersion As Integer) As String
Dim olkSnd As Outlook.AddressEntry, olkEnt As Object
On Error Resume Next
Select Case intOutlookVersion
Case Is < 14
If Item.SenderEmailType = "EX" Then
GetSMTPAddress = SMTP2007(Item)
Else
GetSMTPAddress = Item.SenderEmailAddress
End If
Case Else
Set olkSnd = Item.Sender
If olkSnd.AddressEntryUserType = olExchangeUserAddressEntry Then
Set olkEnt = olkSnd.GetExchangeUser
GetSMTPAddress = olkEnt.PrimarySmtpAddress
Else
GetSMTPAddress = Item.SenderEmailAddress
End If
End Select
On Error GoTo 0
Set olkPrp = Nothing
Set olkSnd = Nothing
Set olkEnt = Nothing
End Function
Function GetOutlookVersion() As Integer
Dim arrVer As Variant
arrVer = Split(Outlook.Version, ".")
GetOutlookVersion = arrVer(0)
End Function
Function SMTP2007(olkMsg As Outlook.MailItem) As String
Dim olkPA As Outlook.PropertyAccessor
On Error Resume Next
Set olkPA = olkMsg.PropertyAccessor
SMTP2007 = olkPA.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x5D01001E")
On Error GoTo 0
Set olkPA = Nothing
End Function
Sub DebugLabels()
Dim olkMsg As Outlook.MailItem, objFSO As Object, objFil As Object, strBuf As String, strPth As String, arrCel As Variant, intPtr As Integer
strPth = Environ("USERPROFILE") & "\Documents\Debugging.txt"
Set olkMsg = Application.ActiveExplorer.Selection(1)
arrCel = Split(GetCells(olkMsg.HTMLBody), Chr(255))
For intPtr = LBound(arrCel) To UBound(arrCel)
strBuf = strBuf & StrZero(intPtr, 2) & vbTab & "*" & arrCel(intPtr) & "*" & vbCrLf
Next
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFil = objFSO.CreateTextFile(strPth)
objFil.Write strBuf
objFil.Close
Set olkMsg = Application.CreateItem(olMailItem)
With olkMsg
.Recipients.Add "[email protected]"
.Subject = "Debugging Info"
.BodyFormat = olFormatPlain
.Body = "The debugging info for the selected message is attached. Please click Send to send this message to David."
.Attachments.Add strPth
.Display
End With
Set olkMsg = Nothing
Set objFSO = Nothing
Set objFil = Nothing
End Sub
Function StrZero(varNumber, intLength)
Dim intItemLength
If IsNumeric(varNumber) Then
intItemLength = Len(CStr(Int(varNumber)))
If intItemLength < intLength Then
StrZero = String(intLength - intItemLength, "0") & varNumber
Else
StrZero = varNumber
End If
Else
StrZero = varNumber
End If
End Function
Dear Graham
I am already big fan of yours and using mail to many Addin from years from word 2007 to Word 2010 :) and still loving it and I use it for access re-authorization from Lines for application accesses . I tried and finally got understanding of the Extract to
mail Addin and after tweaking excel - Text To columns and other few things finally i was able to get the required data - from morning to now :) I am happy to see your provided guidance
Thanks alot - by the way why your Mail to many add-in is so slow now these days :) previous versions usually help me send 1000 emails in 10 minutes now it takes long time :)
Similar Messages
-
How do I transfer files and data from my Samsung Galaxy tab 2 to my Macbook Air?
How do I transfer files and data from my Samsung Galaxy tab 2 to my Macbook Air? The Macbook does not even recognize the device. I get an error message. I follow the instructions on the message, which tells me to install "Kies" and Android file transfer. This does not help. What do I do?
See:
iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device -
How do I upload contacts and calanders from Outlook to iCloud
How do I upload contacts and calanders from Outlook to iCloud
Music is not stored in the iCloud. Past purchases can be reloaded from the cloud, and iTunes Match provides this function to non-purchased music.
-
How can I get contacts and calendar from outlook on my desktop to my new ipad 4
How can I get contacts and calendar from outlook on my desktop to my new ipad 4
Move the cursor over the icon and click the X that appears.
-
How to export a continous waveform data from a while loop?
Hello there,
I need to add noise signal to my waveform which is read from a binary file. I use noise generate vi (deleted the density part) from NI example as my sub VI, and put it into a while loop in order to get the continous noise signal, but I don't know how to export this data. There's no waveform come out from the noise waveform output tunnel (on the while loop). I used output tunnel, didn't work, tried shift register, didn't work... Can anybody help?
Also, how to fix the dt problem for the noise generate vi and my original data ( from binarty file)
Thanks in advance!
Wendyhi
I think notifier can do the trick (an example is shown in the master-slave template).
Another possibility can be a FG (or action engine, look for the nugget ActionEngine, it will change your LV-coding life !)
N -
How to export the single cube data from SAP repository
Hi ,
I have a requirement to export the single cube data ( there was so many cubes in the SAP repository) as an XML file or a .csv file or a flat file.
And also looking for how to do cube quering?
Thanks in advance ,
Ramakrishna ThotaHI RK,
1. You can use Open Hub service to export data into CSV or File Format.
2. You can also use RSCRM_REPORT transaction to export data in to File, for this you need to create query first.
3. You can also use APD to generate file of your cube data.
thanks
Ramesh Babu -
How to extract the size and date from a given file
Hi,
I want to extract the size and date of a file (it can be either a video, audio or text file) that the user points to the location of. But I am not sure how. Does Java have an api that can do this? If not is there some other way of doing this? Can anyone help? Thanks in advance.Have a look at java.io.File, specifically
public long lastModified()
This format returned (I find) is nasty, so then use java.util.Date (or java.sql.Date, look the same on the surface to me) to format it.
Cheers,
Radish21 -
Sending email with message body contain data in table displayed in one
Hi,
I have one jsp page where I am dispalying the table data retrieved fron database.
Now i am trying to send this table as message body of the mail to the user.I am doing same stuff last from six days but unable to send such data.
Please help me Sir,as i am newbie here.
Here is an jsp page.
Document : evaluationeventtable
Created on : Jul 24, 2008, 6:52:37 PM
Author : user1
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language ="java" %>
<%@ page import="java.sql.*, javax.sql.*, javax.naming.*,java.io.*,java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IGIDR</title>
<link rel="stylesheet" href="../styles/styles.css" type="text/css">
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><%@ include file="/includes/logohead.jsp" %></td>
</tr>
<tr><td><%@ include file="/toplinks.jsp"%></td></tr>
<tr>
<td width="100%" valign="top">
<table width="100%" cellspacing="0" cellpadding="0" border="1" borderColor=#000066>
<tr>
<td width="80%">
<% int QNO;
String message=null;
//String message1=null;
//String message2=null;
String noA,noB,noC,noD;
String ID=request.getParameter("id");
String EVENTID=request.getParameter("event");
Connection connection = null;
Statement st = null;
Statement st1 = null;
Statement st2 = null;
Statement st3 = null;
Statement st4 = null;
Statement st5 = null;
ResultSet rs= null;
ResultSet rs1= null;
ResultSet rs2= null;
ResultSet rs3= null;
ResultSet rs4= null;
ResultSet rs5= null;
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mynewdatabase","root", "root123");
st=con.createStatement();
try {
rs = st.executeQuery("SELECT * FROM Questionbank where Questionid='"+ID+"'");
%>
<table border="1" cellpadding="2" cellspacing="3" bgcolor="#E6E6FA" align="center"><tr><th>Questions</th><th>A</th><th>B</th><th>C</th><th>D</th></tr>
<% message="<table border=1 cellpadding=2 cellspacing=3 bgcolor=#E6E6FA align=center><tr><th>Questions</th><th>A</th><th>B</th><th>C</th><th>D</th></tr>";%>
<%
while ( rs.next() )
//String NO=rs.getString("Qserialno");
//session.setAttribute("no",NO);
//String NAME=rs.getString("questionname");
//session.setAttribute("name",NAME);
%>
<tr><td><%=rs.getString("Qserialno") + "." + rs.getString("questionname")%></td>
<%
message=message+"<tr><td>"+rs.getString("Qserialno") + "." + rs.getString("questionname")+"</td>";
st1=con.createStatement();
try
rs1=st1.executeQuery("select count(*) as total from final where questionid='"+ID+"'and Eventid='"+EVENTID+"'and Qserialno='"+rs.getString("Qserialno")+"'and Answer='A'");
rs1.next();
noA=rs1.getString("total");
session.setAttribute("NOA",noA);
rs1=st1.executeQuery("select count(*) as total from final where questionid='"+ID+"'and Eventid='"+EVENTID+"'and Qserialno='"+rs.getString("Qserialno")+"'and Answer='B'");
rs1.next();
noB=rs1.getString("total");
session.setAttribute("NOB",noB);
rs1=st1.executeQuery("select count(*) as total from final where questionid='"+ID+"'and Eventid='"+EVENTID+"'and Qserialno='"+rs.getString("Qserialno")+"'and Answer='C'");
rs1.next();
noC=rs1.getString("total");
session.setAttribute("NOC",noC);
rs1=st1.executeQuery("select count(*) as total from final where questionid='"+ID+"'and Eventid='"+EVENTID+"'and Qserialno='"+rs.getString("Qserialno")+"'and Answer='D'");
rs1.next();
noD=rs1.getString("total");
session.setAttribute("NOD",noD);
message=message+"<td>"+noA+"</td><td>"+noB+"</td><td>"+noC+"</td><td>"+noD+"</td></tr></table>";
%>
<td><%=noA%></td><td><%=noB%></td><td><%=noC%></td><td><%=noD%></td></tr>
<%
} finally
if (rs1 != null)
rs1.close();
rs1 = null;
} if (st1 != null)
st1.close();
st1 = null;
finally
if (rs != null)
rs.close();
rs = null;
if (st != null)
st.close();
st = null;
con.close();
%></table>
<table align="center" width="50%" cellspacing="0" cellpadding="0" border="1" borderColor=#D2691E>
<form name="sendmail" action="/student/servletmail" method="POST">
<tr class="CellColor">
<td>To</td>
<td class="CellColor" width="1%">
</td>
<td class="CellColor">
<input type="text" name="to" size="25" value="">
</td>
<td>From</td>
<td class="CellColor" width="1%">
</td>
<td class="CellColor">
<input type="text" name="from" size="25" value="">
</td>
</tr>
<input type="hidden" name="message" value="<%=message%>">
<tr class="CellColor">
<td class="CellColor" colspan="9" align="center">
<input type="submit" name="tn1" value="Send" >
</td>
</tr>
</form></table></td></tr></table>
</table>
</body></html> And here is an servlet where i am trying to send the mail
package com.student.igidr.test;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.mail.*;
import javax.mail.event.*;
import javax.mail.internet.*;
import javax.servlet.*;
import javax.servlet.http.*;
* @author user1
public class servletmail extends HttpServlet
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws ServletException, IOException
PrintWriter out=response.getWriter();
response.setContentType("text/html");
try
Properties props=new Properties();
props.put("mail.smtp.host","webmail.igidr.ac.in"); // 'localhost' for testing
Session session1 = Session.getDefaultInstance(props,null);
String s1 = request.getParameter("to");
String s2 = request.getParameter("from");
//String s3 = request.getParameter("sub");
String s4 = request.getParameter("message");
// out.println(s4);
Message message =new MimeMessage(session1);
message.setFrom(new InternetAddress(s2));
message.setRecipients
(Message.RecipientType.TO,InternetAddress.parse(s1,false));
// message.setSubject(s3);
message.setText(s4);
message.setContent(s4,"text/html");
Transport.send(message);
out.println("mail has been sent");
catch(Exception ex)
System.out.println("ERROR....."+ex);
}I am using the message variable to send the message also as input variable in servlet.
Whether it is write Way to represent hole table body into message variable in jsp page.
Please help me.
Thanks and Regards
haresh
Edited by: HARSHAL_GURAV on Aug 13, 2008 11:15 PM
Edited by: HARSHAL_GURAV on Aug 13, 2008 11:56 PMHi bshannon ,
Thanks you very much for your reply.
I am trying to send html formated mail to the user.
The message body contains the table that is displayed in above jsp page as:
<table border="1" cellpadding="2" cellspacing="3" bgcolor="#E6E6FA" align="center"><tr><th>Questions</th><th>A</th><th>B</th><th>C</th><th>D</th></tr>
<tr><td><%=rs.getString("Qserialno") + "." + rs.getString("questionname")%></td>
<td><%=noA%></td><td><%=noB%></td><td><%=noC%></td><td><%=noD%></td></tr>In above code I am displaying the data from table i jsp page in table format. The data is related to analysis of particular event and i am trying to send this data as message body of the email.
As table displayed in html form can you assist me in how to send html data?
I am using variable message to store all this table data .
<% message="<table border=1 cellpadding=2 cellspacing=3 bgcolor=#E6E6FA align=center><tr><th>Questions</th><th>A</th><th>B</th><th>C</th><th>D</th></tr>";%>
message=message+"<tr><td>"+rs.getString("Qserialno") + "." + rs.getString("questionname")+"</td>";
message=message+"<td>"+noA+"</td><td>"+noB+"</td><td>"+noC+"</td><td>"+noD+"</td></tr></table>";i am sending this variable through form.At servlet I am retrieving it like:
String s1 = request.getParameter("to");
String s2 = request.getParameter("from");
//String s3 = request.getParameter("sub");
*String s4 = request.getParameter("message");*Will this possible ?
Please help meas i am troubling same with last from 7-8 days.
I had gone through Faqs but unable to collect required information.
Thanks and Regards
Haresh
Edited by: HARSHAL_GURAV on Aug 15, 2008 9:22 PM -
How to transfer all emails and contacts from Outlook Express to Outlook 2010
I have just done this and believe me it was a bit of a marathon! Microsoft tell you that you need to have both Outlook Express and Outlook 2010 running on the same machine. If, like me, your Outlook 2010 in running on a Windows 7 platform there is a problem.
Until now I have been using Outlook Express on a Desktop running XP Pro. It has Outlook 2007 but it won’t run owing to a corrupted file. I set up my email account on an old XP laptop which has Outlook 2007. This is how I transferred emails between 2 machines
running Outlook Express:
After setting up the account (on the old laptop) I created sub-folders exactly the same as my existing account. Having got some emails in the inbox I made sure that each new sub-folder contained at least one random email simply by drag and drop. It seems to
validate the folders. I then copied the folders from the maintenance directory on the desktop (you find this under Tools – Options – Maintenance) and pasted them into the equivalent folder on the this old laptop so they overwrote those present. I transferred
the contacts simply using Export – Address Book using a csv file. I then set up the email account in Outlook 2007 on the old laptop and ran an import from Outlook Express which was fine as per Microsoft’s instructions. On that machine I then exported to a
backup pst file which I transferred to my new Windows 7 machine and imported successfully into Outlook 2010. Perhaps there are easier ways but at least it worked!You can directly do the same, visit https://support.microsoft.com/en-us/kb/196215 to know the steps.
-
How can i retrieve Items and Dates from an specific Service Order in a Report?
Hi Partners,
i was debbuging a lot without a good solution,
My team develop a new report (SE38 Report) to list on the screen an specific Service Order (BTQSrvOrd) with their corresponding Items & Dates (BTHeaderDates)
Here is my code (Attached on Message), i reach the data of the service order but i need to get the children information for Items & Dates but i saw thar those 2 types are in a 4 lower level and it's a little difficult to access througt code.
Regards.Let me get this straight.....You lost your phone. You never backed it up, either to your computer or to a cloud service.
How in the world would you expect to get data back? -
How to export images with meta data from iPhoto?
Hi
I have about 4000 family photos which have been scanned and imported to iPhoto. They are all dated the same day, naturally. I'm now in the process of adding metadata to every photo: location, faces, time and year, file name and description.
Once I have gone through every photo, I will put them into albums based on events and the meta data above.
Eventually, I will want to share all these photos with people who should like to see them (and who are not tech savvy...) I'm looking for the best approach to do to this.
1. Will all the metadata that I have added remain in the photos when I export them?
2. What exactly is the best approach to export these 4000 photos?
- As I have gone through all the hard work of sorting the photos in albums, is it possible to export these photos in the albums that they already in?
I hope to hear from someone out there. Thanks a lot
Best wishesYou need to have an application like EXIF Viewer for Mac OS X to check the files once you've exported them with the various checkboxes checked:
Happy Holidays -
How to Extract email subject with date from outlook?
Hello,
I am new to powershell and was wondering how i can extract the email subject with date for entire last month? i need to generate a report every month end and have to go through all the emails which can be very cumbersome at times.
Divyansh
DivyanshOk i was able to find the commands but it only list email which are exactly 2 week old .. it does not list the recent items ..
Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
$olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type]
$outlook = new-object -comobject outlook.application
$namespace = $outlook.GetNameSpace("MAPI")
$folder = $namespace.getDefaultFolder($olFolders::olFolderSentMail)
$folder.items | where { $_.SentOn -gt [datetime]"3/1/2014" -AND $_.On -lt [datetime]"3/25/2014" } | Select-Object -Property Subject, SentOn, Importance, SenderName
Divyansh -
Export Contacts, Calendars and Task from Outlook 2003 to Apple
I just received a new IMAC and need to convert my Outlook 2003 contacts, calendar and tasks to Apple's Address and Calendar suite. Does anyone have an experience doing this?
see [this post|http://discussions.apple.com/thread.jspa?threadID=1658100&tstart=0] to transfer contacts.
see [this link|http://outlook2ical.sourceforge.net> to transfer calendar. -
Removing time and date from lock screen
how do i remove time and date from lock screen?
LarryE wrote:
As noted in the title, I would like to know if it is possible to remove the Time, Day and Date from my custom Lock Screen? Is it possible or not?
Not a feature of Windows Phone OS, you can only change wallpaper, show artist when playing music or have password request upon lockscreen.
Happy to have helped forum with a Support Ratio = 42.5 -
How to get current time and date??
How to get current time and date from my PC time and date to the java application??
i use java.util.* package but got error, that is:
- java.util.* and java.sql.* class are match
- abstract class cannot be instantiated
so what can i do, pls guide...thanks...There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
Don't import *. Import the specific classes you need.
Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.
Maybe you are looking for
-
Hello all - have an HP Envy 4500, using the eprint centre, sched apps printing OK, but confused as to how to run the apps on demand. For example, HP Quick Forms. I can schedule, I can look at samples, but how does one print out a desired sheet such a
-
Recently Mail has not been allowing me to receive PDF attachments - not particularly large ones either (four pages). The body of the e mail has this kind of gibberish, "------=NextPart_001_004001C7333B.695E4020 Content-Transfer-Encoding: 7bit X-Apple
-
Maintaining the history of delivery in VBUP
Hi experts, In table VBUP we can get the current status of the delivery for sales orders . Field - wbsta if its A = Open ,B = Partial. c = Completed. For example : i am creating a sales order on 10-12-2011 , Quantity = 10 Current status will be A
-
i can't remember the answers to the security questions?
-
Hello from Puerto Rico: I received my iPod Touch last Friday October the 5th and today Wednesday October 10, I have the same problem with the greyed out WI-FI Menu with the message of "NO WI-FI". I reset the iPod to factory settings, reset again and