try this see if it helps
With OutMail .to = ActiveSheet.Range("b" & I).Text .CC = ActiveSheet.Range("c" & I).Text On Wed, Jan 26, 2011 at 1:51 AM, John A. Smith <johnasmit...@gmail.com>wrote: > I use a file with a macro (which this wonderful group collectively > contributed to) which when I highlight a range and hit ctrl + s it drops it > into a new excel file, opens outlook and addresses it to the addresses in > the macro. > > I would like to let the user put an email address in a cell and when they > hit ctrl + s it does the same but goes to that specific email address. I am > hoping to be able to go into the current macro and change the to="" into the > command to get the contents of the specific address cell. Below is the > portion of the marco that needs to change: > > With Dest > .SaveAs TempFilePath & TempFileName & FileExtStr, > FileFormat:=FileFormatNum > On Error Resume Next > With OutMail > .to = "" > .CC = "" > > Thank you for your continueing help. > > John > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- *Regards* * * *Ashish Koul* *akoul*.*blogspot*.com <http://akoul.blogspot.com/> *akoul*.wordpress.com <http://akoul.wordpress.com/> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> P Before printing, think about the environment. -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel