Sorry I steered you in the wrong direction: there is no From property. There is however a SentOnBehalfOfName property. You should be able to assign your team's e-mail address to this property and obtain the result you are hoping for.
Best wishes, Rolf Jaeger SoarentComputing http://soarentcomputing.com/SoarentComputing/ExcelSolutions.htm On Nov 20, 2:53 pm, Hanum <[email protected]> wrote: > I domt see .From property defined anywhere. I did try with SendName > property but the code errors out. > Any further help is greatly appreciated. > > Dim myMail As MailItem > > 'All > 'my > 'code > > With myMail > .To = "[email protected]" > '.From = > .Subject = "My files" > .Body = ActiveSheet.Range("A2").Text & vbCrLf > .Attachments.Add CurrFile > .Display '.Send > End With > > On Nov 17, 10:16 pm, RolfJ <[email protected]> wrote: > > > > > Did you already try to simply assign your team's groupemailaddress > > to the .From property of the mail item? > > > On Nov 16, 9:01 am, Hanum <[email protected]> wrote: > > > > I have some VBA code that sends anemailautomatically after attaching > > > an Excel file. > > > Theemailgets sent using my corporateemailaccount. Is there a way I > > > can make the FROMemailmy team's groupemailaddress rather than > > > mine?- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to [email protected] If you find any spam message in the group, please send an email to: Ayush Jain @ [email protected] or Ashish Jain @ [email protected] <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,500 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe
