Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do i send email from a macro

Ok,

So I have part of my macro, and I need for it to create a new emai
being sent to me when the tab is clicked. I don't want it to send i
to me automatically. It's going to be a Comment/Suggestion email tha
I need to implement on my userform. I've tried everything I can fin
here and several other websites, but it all pertains to sendin
workbooks/sheets automatically. Not the way I need it

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how do i send email from a macro

It sounds like you have the code you need. Just tie the code to the Click
event of the button on the userform.

--
Regards,
Tom Ogilvy

"dok112 " wrote in message
...
Ok,

So I have part of my macro, and I need for it to create a new email
being sent to me when the tab is clicked. I don't want it to send it
to me automatically. It's going to be a Comment/Suggestion email that
I need to implement on my userform. I've tried everything I can find
here and several other websites, but it all pertains to sending
workbooks/sheets automatically. Not the way I need it.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do i send email from a macro

Ok, the only problem, is I don't know how to write the code. All th
codes that I have found, creates the email and automatically sends it
and creates attachments. I just need to find out how to create a ne
email and update the To field and the Subject field

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how do i send email from a macro

that is what sendmail does. What do you want to do. Do you want to write
information in the email and send it but not add an attachment. Anyway, Ron
de Bruind covers all types of options using SendMail, Outlook using
Automation and CDO. You should find code there that suits your needs:

http://www.rondebruin.nl/index.html

http://www.rondebruin.nl/sendmail.htm


an Article by Ron on MSDN:
http://msdn.microsoft.com/library/en...odc_xlmail.asp

--
Regards,
Tom Ogilvy


"dok112 " wrote in message
...
Ok, the only problem, is I don't know how to write the code. All the
codes that I have found, creates the email and automatically sends it,
and creates attachments. I just need to find out how to create a new
email and update the To field and the Subject field.


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to send email with attachements Gaura215 Excel Discussion (Misc queries) 4 April 5th 23 02:59 PM
Macro to send email BAKERSMAN Excel Discussion (Misc queries) 0 April 2nd 10 01:28 AM
Macro to send email automatically. Dan Wood Excel Discussion (Misc queries) 3 December 20th 09 12:19 PM
macro to send email scheduler Excel Discussion (Misc queries) 2 October 18th 07 11:20 PM
Can you send a Macro to someone else by email? Greenback Excel Discussion (Misc queries) 3 August 2nd 06 01:01 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"