Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Setting the Send to Value xlDialogSendMail

I have recorded a marco for a command button on my form
that will do a file send to mail recipient (as
attachment) when clicked but I want to also assign the
address that the form will be emailed to as a default but
when I try recorded this in the macro it doesn't except
it. How do I assign the send to value? Help.
Thanks
Tammy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Setting the Send to Value xlDialogSendMail

I have some Example code on my site Tammy if
you use Outlook or Outlook express
http://www.rondebruin.nl/sendmail.htm


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Tammy" wrote in message
...
I have recorded a marco for a command button on my form
that will do a file send to mail recipient (as
attachment) when clicked but I want to also assign the
address that the form will be emailed to as a default but
when I try recorded this in the macro it doesn't except
it. How do I assign the send to value? Help.
Thanks
Tammy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Setting the Send to Value xlDialogSendMail

Tammy,

Got this from the ng

Sub SendMyMail()
Dim subj As String
subj = InputBox("Enter your Subject Line", "email Subject")
' allows for a subject line

'Emails the activeworkbook'
ActiveWorkbook.SendMail Recipients:="", _
Subject:=subj, ReturnReceipt:=True
End Sub

just put your default between the "" on the line
ActiveWorkbook.SendMail , _

note that this works with outlook.

Use this link to get more info
http://www.rondebruin.nl/sendmail.htm

steve

"Tammy" wrote in message
...
I have recorded a marco for a command button on my form
that will do a file send to mail recipient (as
attachment) when clicked but I want to also assign the
address that the form will be emailed to as a default but
when I try recorded this in the macro it doesn't except
it. How do I assign the send to value? Help.
Thanks
Tammy



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
Excel 2003 giving annoying "Send/Don't Send" error when closing BigDaddyCool Excel Discussion (Misc queries) 0 January 29th 10 02:31 AM
Bypass: A program is trying to send mail using Item.Send prompt Vick Excel Discussion (Misc queries) 1 June 25th 09 03:31 AM
My send to in excel/word does not offer send as attachment Mstink Excel Discussion (Misc queries) 11 March 16th 06 02:49 PM
Setting default pivot table field setting to "sum" Mr. Moose Excel Discussion (Misc queries) 2 December 21st 04 04:43 PM
xlDialogSendMail O'Neil Excel Programming 0 July 10th 03 03:50 PM


All times are GMT +1. The time now is 03:48 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"