+ Reply to Thread
Results 1 to 6 of 6

Send Mail Code Required **Please help experts**

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Derbyshire, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Send Mail Code Required **Please help experts**

    Hi there,

    I am a complete beginner in terms of VBA coding and have been trawling the net recently to adapt some code to meet my requirements.
    I have checked many sites (Ron De Bruin included) and i cant seem to adapt the coding, its seems very complex. Can anyone help?

    I have a big body of text i would like to include in the email, and basically, i just want to send that as per the following (there are multiple lines)

    A = name B = email C = UserName D=Password E

    Alex Radford [email protected] RADFAL TESTING

    to include text; Dear (=A1)

    Please find your user name and password below

    User Name (=B1)
    Password "TESTING"

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Send Mail Code Required **Please help experts**

    You haven't said what your email client is, so I'm assuming Outlook. Mail a message to each person in a range Example 1 is fairly close to your requirement. Just remove the column C cell check which you don't need.
    Post responsibly. Search for excelforum.com

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Derbyshire, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Send Mail Code Required **Please help experts**

    Thanks Chippy, i still can not adapt it to what i need.

    The body of the text needs to look like the email i have attached here, and i cant seem to get the correct syntax for it. Where user ID and password is i need it to be a cell value, but i cant work out the syntax where my "" and &_ need to be.

    Also where the XXXX are for password and user name i need to refer these to a certain cell

    Sorry its microsoft outlook

    thanks in advance

    ------------------
    Dear

    With reference to Andy Cliff’s emails, we have now created your account on the new solution manager system. Please refer to the email attached for instructions on installing this to your SAP GUI if you haven’t already done so. Your account will become live Thursday morning



    Your user ID is: XXXXX
    Your password is: XXXXX

    Please be aware that the password is case sensitive.

    When you login for the first time the system will prompt you to reset your password. The new password should consist of minimum of a minimum of characters with at least one numeric character, and one special character. You will need to login within 4 days and change your password to one of your own choice, otherwise the password will expire
    -------------------------------------------

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Send Mail Code Required **Please help experts**

    see if it helps you
    Attached Files Attached Files
    Regards, John55
    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.

    ...enjoy -funny parrots-

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    Derbyshire, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Send Mail Code Required **Please help experts**

    wow John - i didnt think that i would be able to link the text from cells... thats a great solution, i have been working on locking down the syntax _ & etc etc add lines etc etc to try and make this work.

    I ll double check this later on do you know if i can insert an image as well ? not as a file, but actually as a picture?

    Appreciate the support

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Send Mail Code Required **Please help experts**

    maybe this
    Please Login or Register  to view this content.
    change here for your needs
    Please Login or Register  to view this content.

+ 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