+ Reply to Thread
Results 1 to 5 of 5

Outlook Subject line from Excel Cell reference

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Outlook Subject line from Excel Cell reference

    Hi Below code will took the outlook mail body from a selection range in Excel.

    i this code itself want to take the subject from a cell reference.(B2)

    The cell B2 contain the Subject matter.So the subject should take from the B2 cell reference and the mail body part will be from a selection range.

    the code is given below.

    With OutMail
    .To = "[email protected]"
    .CC = ""
    .BCC = ""
    .Subject = "This is the Subject line"
    .HTMLBody = RangetoHTML(rng)
    '.Send 'or use
    .Display
    End With


    Regards

    Shibu P V

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi Shibu,

    Try the below & adjust the range as necessary...
    Please Login or Register  to view this content.
    You will find a lot more useful info for emailling from Excel using Ron De Bruin's links on the below webpage:
    http://www.rondebruin.nl/sendmail.htm
    (Sorry this may not be a hyperlink because I can't get the "insert link" icon to work on my computer.)

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Outlook Subject line from Excel Cell reference

    Hi all

    Is it also possible to have multiple cells in the subject line?

    Many Thanks

  4. #4
    Registered User
    Join Date
    09-05-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Outlook Subject line from Excel Cell reference

    No - I have worked it out.


    Thanks again

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Outlook Subject line from Excel Cell reference

    Scott,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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