+ Reply to Thread
Results 1 to 3 of 3

insert variable string in email macro

  1. #1
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    insert variable string in email macro

    what i'm trying to make, is a macro where in 1 click, i can send an email... the most part is the same.. but some parts can change..

    so in this code i created, it should prompt for an input box where i can enter the name(LOB) so it will come into the email when it goes

    Please Login or Register  to view this content.
    the problem is.. when i try running this code.. the string entered in the "LOB" and "interval" inputbox would add the text on the same line as the other text...
    it seems to neglect the effect of the VBnewline statement...
    i wanted it to show like:

    Request for VTO: **LOBname**
    Intervals Stated Below: **2100 - 2300 EST**
    Amount FTE : 10 (reductions) per interval


    but it show like this:

    Request for VTO: **LOBname** Intervals Stated Below: **2100 - 2300 EST** Amount FTE : 10 (reductions) per interval


    any better ideas?
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: insert variable string in email macro

    Hi, ag273n,

    maybe try it like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: insert variable string in email macro

    worked perfectly! thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 01-02-2013, 08:35 AM
  2. Transferring a dynamically named string variable to another string variable.
    By Concorde Rules in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2012, 04:08 AM
  3. Macro to add two dimensional string array as email body.
    By duran16 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2012, 01:14 PM
  4. Email Macro in Excel 2007 with Variable name in Body
    By AdrianoF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2009, 03:40 AM
  5. Can't insert a String Variable of Long Date into Page Header
    By Ronny Hamida in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2006, 12:45 PM

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