Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,104
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15
Default 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




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 email to address in cell reference hnyb1 Excel Discussion (Misc queries) 1 August 4th 09 10:39 PM
How can I create a macro for my email address? filing downloaded email stationery Excel Discussion (Misc queries) 2 November 20th 08 04:45 PM
send wkbk as an email attachment with an email address copied from SueInAtl Excel Discussion (Misc queries) 0 May 21st 07 10:53 PM
can I copy a column of email addresses, paste into email address? Lizizfree New Users to Excel 4 July 20th 06 10:03 PM
Transfer Email addresses from spreadsheet to email address book Beana Excel Discussion (Misc queries) 2 May 30th 06 06:07 PM


All times are GMT +1. The time now is 10:09 PM.

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

About Us

"It's about Microsoft Excel"