+ Reply to Thread
Results 1 to 7 of 7

Convert formatted text to html code

  1. #1
    Registered User
    Join Date
    02-23-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    31

    Convert formatted text to html code

    Hi guys, i was wondering if someone can help me with this.
    i have a catalog of products that im advertising on my website. my supplier sends me the file in excel format with descriptions of the items. i would like to know if its possible to convert the formatted text with colored fonts, bold, italic, etc in one cell into html code in the next cell. so for example

    This Product is amazing
    Click here for amazing specials
    Thank you for your support

    to this

    <p>This Product is amazing <br />
    Click here for amazing specials <br />
    Thank you for your support<br />
    </p>

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Convert formatted text to html code

    How about this?

    if your data start from A2 put this in B1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-23-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Convert formatted text to html code

    Unfortunately that doesn't work
    if i paste directly from word into one cell in excel it only displays <br /> on the last item.
    the formatted text that im copying has line breaks in between, certain fonts are bold, italic, etc
    can this code be eddited so that it can pick up the various formats

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Convert formatted text to html code

    What if you first paste it in notepad?

  5. #5
    Registered User
    Join Date
    02-23-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Convert formatted text to html code

    if i paste it into notepad it will make it into plain text, i dont want it to be plain text, i need it to be formatted with the various line breaks in certain areas, some text must be bold, others italic colored in red, etc.
    can it be done?

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Convert formatted text to html code

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

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

    View Pic

  7. #7
    Registered User
    Join Date
    02-23-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Convert formatted text to html code

    Thank you for all your help. i really appreciate it. attached please see image
    Attached Images Attached Images

+ 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. Format Cell to display HTML code as formatted text
    By needhelp1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 05:56 PM
  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. Convert hyperlink to html code
    By joodkap in forum Excel General
    Replies: 6
    Last Post: 03-19-2009, 09:06 AM
  4. Pasting HTML formatted text as plain text in Excel
    By JeffCutter in forum Excel General
    Replies: 1
    Last Post: 09-21-2007, 07:43 AM
  5. Converting formatted text into HTML tags
    By cammo in forum Excel General
    Replies: 0
    Last Post: 12-01-2005, 02:38 AM

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