Help required to change the vb script

Joined
Sep 26, 2012
Messages
6
Reaction score
0
I need to extract all outlook mails to single text file. I have a code for it ,but it extracts each mail to seperate text file. But i need all in single text file. Please its very urgent
The present code is given below.

Sub saveEmailTxt()
Dim objItem As Object
Dim iCount As Integer

'iterate over all Items in the current folder and save the body as textfile in c:\ '
For Each objItem In ActiveExplorer.CurrentFolder.Items
objItem.SaveAs "C:\Mail" & CStr(iCount) & ".txt", olSaveAsText
iCount = iCount + 1
Next

End Sub
 

muckshifter

I'm not weird, I'm a limited edition.
Moderator
Joined
Mar 5, 2002
Messages
25,739
Reaction score
1,204
Please can anyone help regarding the above query...? its urgent...!
sorry, all our operators are busy right now, we have read your message, we will get back to you as soon as possible. :)


:user:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top