A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ReplyAll



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 10th 09, 08:57 PM posted to microsoft.public.outlook.program_vba
Edward
external usenet poster
 
Posts: 56
Default ReplyAll

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?
--
Best regards,
Edward
  #2  
Old April 11th 09, 02:41 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default ReplyAll

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.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Edward" wrote in message
...
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?
--
Best regards,
Edward



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ItemSend only fired for new mail, not Reply, Replyall and Forward [email protected] Outlook and VBA 3 June 3rd 08 12:36 AM
Forward and ReplyAll issue Alphagmale Add-ins for Outlook 0 February 27th 07 06:52 PM
how to disable "forward" and "replyall" on an email programitcaly Ravikanth Outlook - Using Forms 1 August 10th 06 04:44 PM


All times are GMT +1. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.