+ Reply to Thread
Results 1 to 14 of 14

Removing HTML tags (specifically <p> tags)

  1. #1
    Registered User
    Join Date
    07-02-2015
    Location
    San Gabriel, California
    MS-Off Ver
    2002
    Posts
    11

    Removing HTML tags (specifically <p> tags)

    Hi!


    I'm new here. This would be my first post. I am in dire need of some help with removing HTML tags from a CSV file. I have about 3600 entries to modify. I used:

    Please Login or Register  to view this content.
    But that left me with about 880 entries with:

    Please Login or Register  to view this content.
    I also tried find and replace using <*> for find and a empty replace field but I get the "Formula is too long" error message.


    I'm pretty new to VBA so any help is appreciated!

    Cross posted here!
    Last edited by furiousbob; 07-02-2015 at 05:51 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Removing HTML tags (specifically <p> tags)

    For future reference, please not crosspost your question on multiple forums without including links here to the other threads on other forums[/B].

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...ly-p-tags.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-02-2015
    Location
    San Gabriel, California
    MS-Off Ver
    2002
    Posts
    11

    Re: Removing HTML tags (specifically <p> tags)

    Sorry!! I didn't know that that wasn't allowed.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Removing HTML tags (specifically <p> tags)

    no problem, if no-one tells you, you wont know

  5. #5
    Registered User
    Join Date
    07-02-2015
    Location
    San Gabriel, California
    MS-Off Ver
    2002
    Posts
    11

    Re: Removing HTML tags (specifically <p> tags)

    Any ideas?

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

    Re: Removing HTML tags (specifically <p> tags)

    Uploading csv file and the result that you want would help.

  7. #7
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Removing HTML tags (specifically <p> tags)

    Try changing the pattern to:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-02-2015
    Location
    San Gabriel, California
    MS-Off Ver
    2002
    Posts
    11

    Re: Removing HTML tags (specifically <p> tags)

    Ok! Coming right up!

    I had to upload a snippet of the file as the original file is 7MB and exceeds forum limits. The remnant code starts around row 20.

    Inventory Sample.csv

  9. #9
    Registered User
    Join Date
    07-02-2015
    Location
    San Gabriel, California
    MS-Off Ver
    2002
    Posts
    11

    Re: Removing HTML tags (specifically <p> tags)

    Quote Originally Posted by apo View Post
    Try changing the pattern to:

    Please Login or Register  to view this content.
    Just tried that, didn't work. But thank you for your suggestion!

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

    Re: Removing HTML tags (specifically <p> tags)

    Try change to
    Please Login or Register  to view this content.
    Or
    Please Login or Register  to view this content.
    Since I don't know which you want....
    Last edited by jindon; 07-02-2015 at 10:21 PM.

  11. #11
    Registered User
    Join Date
    07-02-2015
    Location
    San Gabriel, California
    MS-Off Ver
    2002
    Posts
    11

    Re: Removing HTML tags (specifically <p> tags)

    Quote Originally Posted by jindon View Post
    Try change to
    Please Login or Register  to view this content.
    Or
    Please Login or Register  to view this content.
    Since I don't know which you want....
    That actually worked!! Saved me a weeks' worth of work!! THANK YOU THANK YOU THANK YOU

    However, I have another issue, albeit this one sound a bit easier to solve.

    For some of the descriptions, I'm now left with ####### hashtags all the way across. However, when I go to click on it, the entire description appears on the formula bar?

    I tried enlarging the rows/columns, per Google, but that didn't help.

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

    Re: Removing HTML tags (specifically <p> tags)

    Hummm
    D10, D16, D41,,, appears only "###.." in the formula bar when I open it with Excel....

  13. #13
    Registered User
    Join Date
    07-02-2015
    Location
    San Gabriel, California
    MS-Off Ver
    2002
    Posts
    11

    Re: Removing HTML tags (specifically <p> tags)

    Ok I figured it out. I just switched the Format from Text to General and that fixed it. Thanks again for your guys' help!

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

    Re: Removing HTML tags (specifically <p> tags)

    OK then...
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. [SOLVED] Removing HTML tags (specifically <p> tags)
    By furiousbob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2015, 05:40 PM
  2. [SOLVED] Removing HTML tags (specifically <p> tags)
    By furiousbob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2015, 05:40 PM
  3. [SOLVED] Removing HTML tags from a spreadsheet from data obtained through a database query
    By Excelfail in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2014, 12:35 AM
  4. 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
  5. Removing HTML tags from cells
    By rochdalemark in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2005, 06:09 AM

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