moved mail messages

G

Guest

I moved a bunch of mail from a folder to the root of the pst file. If I look
at the PST file in the folder list view and click on the root of the PST file
I can not see any of the mail items I moved. Anyone know how I can get these
back?
 
M

MistyKhan

I moved a bunch of mail from a folder to the root of the pst file. If I look
at the PST file in the folder list view and click on the root of the PST file
I can not see any of the mail items I moved. Anyone know how I can get these
back?




- Show quoted text -

I just wrote a script that I think will do it for you. Do you know
how to get to your VBA environment? If so, try this script which
should move the emails back to your inbox:

Sub GetItems()
Dim MBF As MAPIFolder
Dim NS as NameSpace
Dim myMsg as MailItem

Set NS = Application.Session
Set MBF = NS.Folders("Mailbox - Misty Khan")
For Each Item In MBF.Items
Select Case TypeName(Item)
Case "MailItem"
Set myMsg = Item
MsgBox ("Subject is " & myMsg.Subject)
myMsg.Move NS.GetDefaultFolder(olFolderInbox)
Case Else
End Select
Next
End Sub

Misty Khan
Arrow-Tips.com (blog)
HuntressPro.com (web site)
 
M

Misty Khan

I moved a bunch of mail from a folder to the root of the pst file. If I look
at the PST file in the folder list view and click on the root of the PST file
I can not see any of the mail items I moved. Anyone know how I can get these
back?




- Show quoted text -

Oops, forgot something. Instead of my name in the "set MBF = " line,
you should either user your name or if you are on a POP3 account and
not exchange you should use "Personal Folders". You also might want
to comment out the "msgbox" line.

Misty
 
G

Guest

They're still in that folder -- you just can't see them. To temporarily
disable the Outlook Today page, right-click the folder, select Properties,
then the Home Page tab, and clear the check box for "Show home page by
default for this folder". Click OK and the Outlook Today page will
disappear, leaving you with a regular folder. Drag the message out to
another folder, then go back into the folder properties and re-enable the OT
page by checking the box.

An alternate (and perhaps simpler) method is to use Advanced Find to find
the messages and then drag them out of the AF window into your preferred
folder.
 

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