ReplyAll

  • Thread starter Thread starter Edward
  • Start date Start date
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?
 
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.
 
Back
Top