#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default MACRO HELP

Hi all, I have a macro set up to email certain people once clicked with
certain information.

Is they any way i could type around 6 email address in cells a1, a2, a3, a4,
a5 and a6 and if the user decides to email cells a1 and a3 for example it
will only email whichever email address is in there. Or if you can think of
a better way?

Much appreciated.

Neil.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default MACRO HELP

Using SendMail:

ActiveWorkbook.SendMail recipients=Range("a1").Value, Range("a4").Value


"Neil Holden" wrote in message
...
Hi all, I have a macro set up to email certain people once clicked with
certain information.

Is they any way i could type around 6 email address in cells a1, a2, a3,
a4,
a5 and a6 and if the user decides to email cells a1 and a3 for example it
will only email whichever email address is in there. Or if you can think
of
a better way?

Much appreciated.

Neil.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default MACRO HELP

I think probably an input box would work, so that the user could select the
ranges:

addr = Application.Inputbox("Select Recipients", "SEND TO", Type:=8)
ActiveWorkbook.SendMail recipients:=addr


"Neil Holden" wrote in message
...
Hi all, I have a macro set up to email certain people once clicked with
certain information.

Is they any way i could type around 6 email address in cells a1, a2, a3,
a4,
a5 and a6 and if the user decides to email cells a1 and a3 for example it
will only email whichever email address is in there. Or if you can think
of
a better way?

Much appreciated.

Neil.



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 recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro to copy and paste values (columns)I have a macro file built C02C04 Excel Programming 2 May 2nd 08 01:51 PM
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor [email protected] Excel Programming 2 March 30th 07 07:48 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


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