Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro for e-mail

Is there a way to code for sending a selection of cells as a body of an
e-mail and then attach a file to said e-mail? Also I'm looking for help on
being able to automate changing of the "From" field in this e-mail to reflect
an alias. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 492
Default Macro for e-mail

Have a look here,
http://www.rondebruin.nl/sendmail.htm
"xapoodax" wrote in message
...
Is there a way to code for sending a selection of cells as a body of an
e-mail and then attach a file to said e-mail? Also I'm looking for help on
being able to automate changing of the "From" field in this e-mail to
reflect
an alias. Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Macro for e-mail

Check out Ron de Bruins excellent site on emailing from Excel...

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

Mike F
"xapoodax" wrote in message
...
Is there a way to code for sending a selection of cells as a body of an
e-mail and then attach a file to said e-mail? Also I'm looking for help on
being able to automate changing of the "From" field in this e-mail to
reflect
an alias. Thanks in advance.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro for e-mail

awesome, I was able to extrapolate the info from the site and create a macro
that does both e-mail as body and attach it as a file. thank you very much
for the link.

On a side note, does anyone know how to change the "From" field in the
e-mail using code? I would have thought it was

With OutMail
.From = ""

but this did not work.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 492
Default Macro for e-mail

I hope the purpose of this isn't for spamming!! I'm sure it's not, but,

'Also I'm looking for help on being able to automate changing of the "From"
field in this e-mail to reflect an alias'

sounds suspicious!

Alan.


"xapoodax" wrote in message
...
awesome, I was able to extrapolate the info from the site and create a
macro
that does both e-mail as body and attach it as a file. thank you very much
for the link.

On a side note, does anyone know how to change the "From" field in the
e-mail using code? I would have thought it was

With OutMail
.From = ""

but this did not work.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro for e-mail

Read the info on the Tips page (links is on each example page)

--

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


"xapoodax" wrote in message ...
awesome, I was able to extrapolate the info from the site and create a macro
that does both e-mail as body and attach it as a file. thank you very much
for the link.

On a side note, does anyone know how to change the "From" field in the
e-mail using code? I would have thought it was

With OutMail
.From = ""

but this did not work.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro for e-mail

Haha no definitely not. Some e-mails I have to send out using my department's
alias.

"Alan" wrote:

I hope the purpose of this isn't for spamming!! I'm sure it's not, but,

'Also I'm looking for help on being able to automate changing of the "From"
field in this e-mail to reflect an alias'

sounds suspicious!

Alan.


"xapoodax" wrote in message
...
awesome, I was able to extrapolate the info from the site and create a
macro
that does both e-mail as body and attach it as a file. thank you very much
for the link.

On a side note, does anyone know how to change the "From" field in the
e-mail using code? I would have thought it was

With OutMail
.From = ""

but this did not work.



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro for e-mail

I took at glance at the Tips page, and there's a good chance I might have
missed something obvious, but I was not able to find anything that touched on
changing the "From" field using outlook as an object.

"Ron de Bruin" wrote:

Read the info on the Tips page (links is on each example page)

--

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


"xapoodax" wrote in message ...
awesome, I was able to extrapolate the info from the site and create a macro
that does both e-mail as body and attach it as a file. thank you very much
for the link.

On a side note, does anyone know how to change the "From" field in the
e-mail using code? I would have thought it was

With OutMail
.From = ""

but this did not work.


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro for e-mail

Read good

http://www.rondebruin.nl/mail/tips2.htm

Change sender name and reply address

If you want to change the sender name and reply address add this code line

'The receiver can see the original mail address in the properties if he want
..SentOnBehalfOfName = """SenderName"" "






--

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


"xapoodax" wrote in message ...
I took at glance at the Tips page, and there's a good chance I might have
missed something obvious, but I was not able to find anything that touched on
changing the "From" field using outlook as an object.

"Ron de Bruin" wrote:

Read the info on the Tips page (links is on each example page)

--

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


"xapoodax" wrote in message ...
awesome, I was able to extrapolate the info from the site and create a macro
that does both e-mail as body and attach it as a file. thank you very much
for the link.

On a side note, does anyone know how to change the "From" field in the
e-mail using code? I would have thought it was

With OutMail
.From = ""

but this did not work.


  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macro for e-mail

Thank you!!!

"Ron de Bruin" wrote:

Read good

http://www.rondebruin.nl/mail/tips2.htm

Change sender name and reply address

If you want to change the sender name and reply address add this code line

'The receiver can see the original mail address in the properties if he want
..SentOnBehalfOfName = """SenderName"" "






--

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


"xapoodax" wrote in message ...
I took at glance at the Tips page, and there's a good chance I might have
missed something obvious, but I was not able to find anything that touched on
changing the "From" field using outlook as an object.

"Ron de Bruin" wrote:

Read the info on the Tips page (links is on each example page)

--

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


"xapoodax" wrote in message ...
awesome, I was able to extrapolate the info from the site and create a macro
that does both e-mail as body and attach it as a file. thank you very much
for the link.

On a side note, does anyone know how to change the "From" field in the
e-mail using code? I would have thought it was

With OutMail
.From = ""

but this did not work.


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
E-mail macro G and (ajk) Excel Discussion (Misc queries) 3 October 11th 06 03:29 PM
how do i mail a macro in my personnel macro workbook leo Excel Discussion (Misc queries) 5 December 23rd 05 04:02 PM
E-mail Macro STEVEB Excel Programming 1 October 14th 04 11:15 PM
E-mail Macro STEVEB Excel Programming 1 October 14th 04 10:47 PM
Help with e-mail macro pauluk[_52_] Excel Programming 1 April 23rd 04 12:10 PM


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