ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   can I put an email address in a macro ? (https://www.excelbanter.com/new-users-excel/247634-can-i-put-email-address-macro.html)

Roger[_2_]

can I put an email address in a macro ?
 
I have Excel 2002. I have a spreadsheet that I need to convert to csv format
and email each week to another person. My macro does a save as to convert it
from xls to csv ... is there any way I can automatically overwrite the old
file so it doesn't ask me each time about overwriting the file. Also, when
the macro opens Outlook, is there anyway I can use the macro to
automatically enter the email address and send the email, or do I have to do
it manually each time ? Can a macro jump from Excel to Outlook and then back
again ?

thanks ... Roger



Bernard Liengme[_3_]

can I put an email address in a macro ?
 
See Ron de Bruin's site
Example Code for sending mail from Excel
http://www.rondebruin.nl/sendmail.htm



--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Roger" wrote in message
...
I have Excel 2002. I have a spreadsheet that I need to convert to csv
format and email each week to another person. My macro does a save as to
convert it from xls to csv ... is there any way I can automatically
overwrite the old file so it doesn't ask me each time about overwriting
the file. Also, when the macro opens Outlook, is there anyway I can use
the macro to automatically enter the email address and send the email, or
do I have to do it manually each time ? Can a macro jump from Excel to
Outlook and then back again ?

thanks ... Roger



Gord Dibben

can I put an email address in a macro ?
 
To prevent the message when you overwrite a file add

Application.DisplayAlerts = False

your save code goes here

Application.DisplayAlerts = True

Bernard looked after the sending of mail in his reply.


Gord Dibben MS Excel MVP

On Thu, 5 Nov 2009 16:01:13 +0100, "Roger" wrote:

I have Excel 2002. I have a spreadsheet that I need to convert to csv format
and email each week to another person. My macro does a save as to convert it
from xls to csv ... is there any way I can automatically overwrite the old
file so it doesn't ask me each time about overwriting the file. Also, when
the macro opens Outlook, is there anyway I can use the macro to
automatically enter the email address and send the email, or do I have to do
it manually each time ? Can a macro jump from Excel to Outlook and then back
again ?

thanks ... Roger



Roger[_2_]

can I put an email address in a macro ?
 
Thanks for your help, www.rondebriun.nl is a very good site for this sort of
stuff, thanks again

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
To prevent the message when you overwrite a file add

Application.DisplayAlerts = False

your save code goes here

Application.DisplayAlerts = True

Bernard looked after the sending of mail in his reply.


Gord Dibben MS Excel MVP

On Thu, 5 Nov 2009 16:01:13 +0100, "Roger" wrote:

I have Excel 2002. I have a spreadsheet that I need to convert to csv
format
and email each week to another person. My macro does a save as to convert
it
from xls to csv ... is there any way I can automatically overwrite the old
file so it doesn't ask me each time about overwriting the file. Also, when
the macro opens Outlook, is there anyway I can use the macro to
automatically enter the email address and send the email, or do I have to
do
it manually each time ? Can a macro jump from Excel to Outlook and then
back
again ?

thanks ... Roger






All times are GMT +1. The time now is 03:13 AM.

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