ReplyAll

E

Edward

Hi everybody,
I'm trying to reply to all by the following code but it's not populating To:
field
what am I missing here

Set msg = Application.CreateItem(olMailItem)
With msg
.Subject = "Starting-" & Application.ActiveExplorer.Selection(1).Subject
.Display
.ReplyAll

End With

I get an error saying it can't send the mail , also To: field is empty
Any suggestions?
 
S

Sue Mosher [MVP]

A newly created message -- i.e. your msg object -- has no previous sender or
recipient information. You need to call ReplyAll on an existing message.
 

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