+ Reply to Thread
Results 1 to 5 of 5

Using HTML tags in Excel VBA

  1. #1
    Registered User
    Join Date
    10-03-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    44

    Using HTML tags in Excel VBA

    Hi All,

    I have code that sends a message through Outlook. My problem is because I use .HTMLBody the coding ignores my vbcrlf. I would have to use <br> but Excel immediately gives me an error message if I use that.

    Any suggestions appreciated.


    Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using HTML tags in Excel VBA

    How are you using it?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-03-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Using HTML tags in Excel VBA

    Here is a piece of my coding:

    Please Login or Register  to view this content.
    SubjMsg is String message that uses ranges from the worksheet and combines them with some string. Ex. "Here is text" & Range("A1") & " Some more text".

    Summary is a range that consists of two columns of data with headers

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using HTML tags in Excel VBA

    Try this,
    Please Login or Register  to view this content.
    or this.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-03-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Using HTML tags in Excel VBA

    Thanks Norie that worked perfect!

+ 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. extract information from webpage html tags to excel
    By b.hill in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2012, 01:24 AM
  2. convert formated excel column to html source text with html tags
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2011, 04:22 PM
  3. Remove html markup tags in an EXCEL cell?
    By glennwhite in forum Excel General
    Replies: 3
    Last Post: 06-05-2006, 02:30 AM
  4. [SOLVED] Replacing HTML Tags in Excel
    By Darlene in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2005, 03:05 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