+ Reply to Thread
Results 1 to 3 of 3

Adding a new paragraph between 2 string bodies in VBA email

  1. #1
    Registered User
    Join Date
    12-14-2020
    Location
    Bahrain
    MS-Off Ver
    2010
    Posts
    14

    Adding a new paragraph between 2 string bodies in VBA email

    I've created a workbook that -when opened- opens a userform while hiding the workbook.
    It's a simple userform used to inform the workshop of a repeat repair visit.
    All the service advisors have to do is type in the current job number, previous job number and number of visits for the same complaint, then select service advisors name and team leaders e-mail from drop down lists.
    It then emails the selected team leader with the information.

    I originally only had the details from the userform laid out as follows in the email;

    "A repeat repair assigned to your team has returned to the workshop, please update the log and blah blah blah..."

    WIP Number: 12345
    Previous WIP Number: 12344
    Service Advisor: xxxx

    My code for this worked fine, it set everything out as it should, I then decided it would be better if I embedded the link for the 'log' in the email and now that I have done that, it has messed up the layout of the email.

    I can't seem to introduce a new paragraph between the text and information from the userform and even the new lines in between WIP number, Previous WIP etc. have stopped working.

    I've tried vb New Line, vb CrLf etc. but i can seem to get anything to work.

    Anybody have any ideas what else i could try?


    I am trying to get it to look like this...



    A repeat repair assigned to your team has arrived at the workshop,
    Please update the tracker here and treat the job as a matter of urgency,
    Thank you.

    WIP Number: 12345
    Previous WIP: 12344
    Number of visits for this repair: 2
    Service Advisor: xxxxxx xxxxxx
    Attached Files Attached Files
    Last edited by adam1992; 03-04-2021 at 01:30 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Adding a new paragraph between 2 string bodies in VBA email

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-14-2020
    Location
    Bahrain
    MS-Off Ver
    2010
    Posts
    14

    Re: Adding a new paragraph between 2 string bodies in VBA email

    Perfect, thank you

+ 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. [SOLVED] Remove Paragraph from Email Macro
    By Rolly_Sefu in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-09-2019, 04:35 AM
  2. Find uppercase paragraph + replace string
    By ldoodle in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2018, 04:45 PM
  3. [SOLVED] VBA form textbox string with paragraph symbols
    By onbeillp111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2018, 10:04 AM
  4. Adding a Text/Paragraph using Macro
    By Prevax in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-08-2017, 03:57 PM
  5. [SOLVED] Drop down pulls string value (paragraph) and is concatenated.
    By AM949 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-06-2014, 11:02 PM
  6. Saving email bodies as text files in Hard Drive in Outlook
    By Legacial in forum Outlook Programming / VBA / Macros
    Replies: 7
    Last Post: 06-24-2011, 08:53 AM
  7. [SOLVED] how to Detect paragraph in cell in string?
    By dm16s in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2005, 05:05 PM

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