+ Reply to Thread
Results 1 to 8 of 8

Fill 'Subject' and Body of an e-mail

  1. #1
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Fill 'Subject' and Body of an e-mail

    I'm having the following code in a Userform, it is creating an e-mail, putting an textbox entry into the Addressee box.

    Please Login or Register  to view this content.
    Works fine.

    Now what I'd like to do is to put LNsubject into the Subject field of the mail.

    Also I'd like to set a standard text message in the body of the mail.

    Can you provide some guidance how to achieve those goals?
    Last edited by Gabor; 02-15-2011 at 08:16 AM.
    Regards,

    Gabor

    Protect trees.. maybe one day we need to climb back....

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Fill 'Subject' and Body of an e-mail

    Hi Gabor,
    It looks like you are going from Excel to Email to send good form letters.

    It makes me wonder why you don't use Micorsoft Word and Mail Merge in your Excel data to send the email?

    http://support.microsoft.com/kb/294694 or
    http://office.microsoft.com/en-us/wo...005187257.aspx or
    https://www.uwec.edu/help/Word07/MM-email.htm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Fill 'Subject' and Body of an e-mail

    In terms of URLs etc

    Please Login or Register  to view this content.
    Note the above is restricted to 255 chars.

    In short, first variable is ? thereafter & ... formatting achieved via Hex

    I am presuming you're using this approach because mail clients are unknown / may vary
    Last edited by DonkeyOte; 02-14-2011 at 03:37 AM. Reason: typo

  4. #4
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Re: Fill 'Subject' and Body of an e-mail

    I am not familiar with the tools you refer to, but I will have a look.
    At current I have doubt Word Merger can do this from an Excel UserForm.

  5. #5
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Re: Fill 'Subject' and Body of an e-mail

    DonkeyOte,

    To your question: The original list is a download from a system into an excel file. I contains names in reverse order, like 'Doe, John' format. The email system of the company can recognize the names if I enter John Doe, so I need to turn the string around.

    To your suggestion: Where in the code shall I insert the line you are recommending?

    Thanks

  6. #6
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Re: Fill 'Subject' and Body of an e-mail

    Stupid me, I know where to insert.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Fill 'Subject' and Body of an e-mail

    Quote Originally Posted by Gabor
    To your question: The original list is a download from a system into an excel file. I contains names in reverse order, like 'Doe, John' format. The email system of the company can recognize the names if I enter John Doe, so I need to turn the string around.
    My question was:

    Quote Originally Posted by D.O
    I am presuming you're using this approach because mail clients are unknown / may vary
    If the mail client is unknown or varies by machine then the mailto method is useful for obvious reasons.

    If however the mail client is constant and has an object model of some description (eg Outlook) then you would be best served using it.

    The mailto method as outlined has some relatively significant restrictions (255 chars)

  8. #8
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Re: Fill 'Subject' and Body of an e-mail

    Finally I stopped fiddling with it at this state:

    Please Login or Register  to view this content.

    Thanks for the help.

+ 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