+ Reply to Thread
Results 1 to 8 of 8

macro to split up HTML codes

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    4

    macro to split up HTML codes

    Hi all,

    I am trying to extra data from HTML code into different columns. I have 5 bullet points and 3 paragraphs that I would like extracted into 8 columns, all in the same row. Here is the HTML code:

    <ul><li>Bullet Point 1</li><li>Bullet Point 2</li><li>Bullet Point 3</li><li>Bullet Point 4</li><li>Bullet Point 5</li></ul><p>Paragraph 1</p><p>Paragraph 2</p><p>Paragraph 3</p>

    The data will always be in one cell and I am looking to export it across the same row but 8 different columns (the 5 bullet points and 3 paragraphs).

    Does anyone know how to write a macro to do this?

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: macro to split up HTML codes

    Try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: macro to split up HTML codes

    I must need to take a basic course on macro's- how do I get this to run?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: macro to split up HTML codes

    Can you upload a small sample workbook?

    So that I can install the code and adjust if needed.

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: macro to split up HTML codes

    I'm not sure how to upload to here. If you put this in cell A1, that will be the workbook:


    <ul><li>Bullet Point 1</li><li>Bullet Point 2</li><li>Bullet Point 3</li><li>Bullet Point 4</li><li>Bullet Point 5</li></ul><p>Paragraph 1</p><p>Paragraph 2</p><p>Paragraph 3</p>

    I have only run one other macro and the way I did that was click on Macros>Record Macro, put in a name, went to view macro and edit and then put in the macro code- is that what I need to do? I tried it and can't get it to work.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: macro to split up HTML codes

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    06-05-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: macro to split up HTML codes

    Hey! I got the macro to work! Thanks so much!

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: macro to split up HTML codes

    Good.

    If it solved your problem, please mark this thread as "Solved".

+ 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