Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OL2K: simulate pressing [SEND] button in VBA?

Status
Not open for further replies.

msc0tt

IS-IT--Management
Jun 25, 2002
281
CA
I'm writing a macro to take action on a message immediately after it has been sent. Ideally, I'd like to create a new button on the "New Message" dialog box toolbar, such as [SEND and Process...]. The problem is I don't know how to simulate the pressing of the [SEND] button in the macro code. There doesn't appear to be a .Send method for the Outlook.Selection.Item object. Perhaps the New Message form has a method on the [SEND] button form that I can call??
-with thanks
 
try using?:
Outlook.ItemSend

[yinyang] Tranpkp [pc2]
************************************
- Let me know if this helped/worked!
Please remember to give helpful posts the stars they deserve!
This facilitates others navigating through the threads / posts!
 
Tried it. Didn't work.
Compile error: Method or data member not found.
The macro was displayed in the editor.
The line of the error looks like:
Outlook.Itemsend
and the '.Itemsend' portion was highlighted.

To attack this from another angle, how can I tell what code is executed when 'File | Send' is selected? Is it possible to look 'into' a menu bar's code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top