+ Reply to Thread
Results 1 to 7 of 7

Send email based on address in a cell

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    46

    Cool Send email based on address in a cell

    My code basicly sends a copy of the excel file to a specified email, thw code works but i wish to make one change.

    Please Login or Register  to view this content.
    The line above states the email the file should be sent to. How can i change this so it sends it to the value written in cell x1. for example if in cell x1 the value is [email protected], this should be equivelent to
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 06-19-2013 at 01:28 PM. Reason: Added CODE tags and corrected title, as per Forum Rules. Take a moment to read the Forum Rules in the menu bar above. Thank

  2. #2
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Simple Question

    use this one


    Please Login or Register  to view this content.
    Please consider adding a * if I helped

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Send email based on address in a cell

    Your post did not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title.

    ==============
    I have made the correction in your post for you this time, as a courtesy. Please remember in your future posts. This merely underlines the importance that you read and follow the Forum Rules we are all expected to abide.

    Thank you for your understanding and compliance. Happy Excel-ling.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Simple Question

    Thanks, However this is not working for a reason. Inside Cell A1 i tried both [email protected] and "[email protected]" but its not being equivalent to

    .to="[email protected]"

    any suggestions

  5. #5
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Send email based on address in a cell

    then use:

    In cell A1 use only mail address without ""

    Sheet Name to be changed with "" like "Summary" not Summary

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Send email based on address in a cell

    Sorry, but this still does not work, any other suggestions?

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Send email based on address in a cell

    Did you change Range("A1") in the suggestion to Range("X1") based on your question?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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