+ Reply to Thread
Results 1 to 4 of 4

Adding domain name to email using VBA

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Columbus, IN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Adding domain name to email using VBA

    Hi - hopefully this is straightforward.

    I have a macro that sends an email from excel with a specific sheet of the workbook as an attachment. The macro prompts the user to input the email address to send the sheet to. Given that the email will always be sent to the same domain name i.e. the "@companyname" part of the email will always be the same. Is there a way I can code the macro to automatically add this so all the user needs to do is add the recipients name in the prompt box rather than their full email address?

    Thanks.
    Last edited by sgw_73; 06-27-2013 at 04:30 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding domain name to email using VBA

    Hi sgw_73

    Perhaps something like this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Columbus, IN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Adding domain name to email using VBA

    Excellent - works perfectly. Thank you!

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Adding domain name to email using VBA

    You're welcome...glad I could help. Thanks for the Rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1