ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Email spreadsheet (https://www.excelbanter.com/excel-worksheet-functions/204206-email-spreadsheet.html)

bbc1

Email spreadsheet
 
I have a sheet that I have created a button on that when its pressed opens
outlook up, would like as part of the macro that it places the employee's
email address's in it and sends it.
Sub Email()
'
' Email Macro
''

'
Application.Dialogs(xlDialogSendMail).Show
End Sub

Outlook opens corrrectly with the file attached and the subject completed
but I have to select the persons email address from the contacts dropdown.

Sheeloo[_2_]

Email spreadsheet
 
With the mail object use the following;

..To = "

basically use the same syntax as populating SUBJECT field...

"bbc1" wrote:

I have a sheet that I have created a button on that when its pressed opens
outlook up, would like as part of the macro that it places the employee's
email address's in it and sends it.
Sub Email()
'
' Email Macro
''

'
Application.Dialogs(xlDialogSendMail).Show
End Sub

Outlook opens corrrectly with the file attached and the subject completed
but I have to select the persons email address from the contacts dropdown.


bbc1

Email spreadsheet
 
Sorry am not sure how to place this in the code could I have the actual code
I need to insert

"Sheeloo" wrote:

With the mail object use the following;

.To = "

basically use the same syntax as populating SUBJECT field...

"bbc1" wrote:

I have a sheet that I have created a button on that when its pressed opens
outlook up, would like as part of the macro that it places the employee's
email address's in it and sends it.
Sub Email()
'
' Email Macro
''

'
Application.Dialogs(xlDialogSendMail).Show
End Sub

Outlook opens corrrectly with the file attached and the subject completed
but I have to select the persons email address from the contacts dropdown.


JP[_4_]

Email spreadsheet
 
From mrexcel.com:

Dim Send As Dialog
Send = Application.Dialogs(xlDialogSendMail).Show("someon ",
"Subject Line", True)

--JP


On Sep 27, 2:26*am, bbc1 wrote:
Sorry am not sure how to place this in the code could I have the actual code
I need to insert

"Sheeloo" wrote:
With the mail object use the following;


.To = "


basically use the same syntax as populating SUBJECT field...


"bbc1" wrote:


I have a sheet that I have created a button on that when its pressed opens
outlook up, would like as part of the macro that it places the employee's
email address's in it and sends it.
Sub Email()
'
' Email Macro
''


'
* * Application.Dialogs(xlDialogSendMail).Show
End Sub


Outlook opens corrrectly with the file attached and the subject completed
but I have to select the persons email address from the contacts dropdown.



Ron de Bruin

Email spreadsheet
 
See
http://www.rondebruin.nl/sendmail.htm



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bbc1" wrote in message ...
Sorry am not sure how to place this in the code could I have the actual code
I need to insert

"Sheeloo" wrote:

With the mail object use the following;

.To = "

basically use the same syntax as populating SUBJECT field...

"bbc1" wrote:

I have a sheet that I have created a button on that when its pressed opens
outlook up, would like as part of the macro that it places the employee's
email address's in it and sends it.
Sub Email()
'
' Email Macro
''

'
Application.Dialogs(xlDialogSendMail).Show
End Sub

Outlook opens corrrectly with the file attached and the subject completed
but I have to select the persons email address from the contacts dropdown.


bbc1

Email spreadsheet
 
Thankyou very much worked it out and it works perfectely

"Ron de Bruin" wrote:

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



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"bbc1" wrote in message ...
Sorry am not sure how to place this in the code could I have the actual code
I need to insert

"Sheeloo" wrote:

With the mail object use the following;

.To = "

basically use the same syntax as populating SUBJECT field...

"bbc1" wrote:

I have a sheet that I have created a button on that when its pressed opens
outlook up, would like as part of the macro that it places the employee's
email address's in it and sends it.
Sub Email()
'
' Email Macro
''

'
Application.Dialogs(xlDialogSendMail).Show
End Sub

Outlook opens corrrectly with the file attached and the subject completed
but I have to select the persons email address from the contacts dropdown.




All times are GMT +1. The time now is 11:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com