formula/macro to mimic html-formatting from one cell to another

JCrowell

New Member
Joined
Aug 27, 2015
Messages
17
Sorry if this is a repeat question... what I'm trying to do is the following...

If I manually html-format the text in a cell, I want to know if there's a macro/formula/tool for Excel that I can apply that will mimic the html formatting in that first cell, and convert plain text in another cell to also be html-formatted text.

In other words, I have various cells that will have text in them that will need to be html-formatted text. I want to manually html-code the first cell, then be able to copy/paste and apply to other cells with plain text, so that they will also have similar html-coded text.

Any help would be appreciated!

thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Please provide a few examples of the html formatting you will apply.

Thanks for getting back to me... for sure...

Here is the html formatted text from a cell that I'm working with:

[TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl63, width: 64"]<p><strong>LGI Technology: LED MR16 LEDPro</strong><br><br>The new LED MR16 lamp from LGI. This new lamp was designed with energy saving in mind, producing more lumens than any of its predecessors. It produces light identical to a traditional MR16 with a similar size.</p>
<p>Â </p>
<h4>Specifications</h4>
<br><strong>Features and Benefits:</strong><br>
<ul>
<ul>
<li>Lumen Output: 520</li>
<li>Consumption (in Watts): 7</li>
<li>Direct Voltage : 12V</li>
<li>Driver Included : Built-in</li>
<li>LED Chips: CREE</li>
<li>25,000 Hours : Long Life will reduce maintenance cost</li>
<li>Energy saving : Replaces 50W Halogen MR16</li>
<li>5 Year Warranty : Guaranteed to last 5 years</li>
<li>UL Certified: UL Certified</li>
<li>Energy Star Certified : 3000k Model only</li>
<li>Color Temperature : 3000K and 5000K</li>
</ul>
</ul>
<br><strong>Commercial:</strong><br>
<ul>
<li>Residential</li>
<li>Commercial</li>
<li>Retail</li>
</ul>

So, bold header, 1-2 paragraphs of description, 2 <h4> codings to produce 2 separate "tabs," and more bulleted text

What I'm trying to do is to just be able to copy/paste regular, unformatted text into a cell, apply a macro or formula, and have it html code the text following the same pattern above... does that make sense? Any help would be appreciated! Thanks!


[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Sorry... had that all pasted out in html... it actually posted it in rich format! let me see...

"<p><strong>LGI Technology: LED GU10 NeroLume</strong><br><br>Introducing the all new LED GU10 NeroLume from LGI. This new lamp is designed to save more energy and produce more lumens than any of its predecessors. Looks identical to a traditional MR16 with a similar size. 7W/120V/400 Lum.</p><p>Â </p>
<h4>Specifications</h4>
<br><strong>Features and Benefits:</strong><br>
<ul>
<ul>
<li>Lumen Output: 400</li>
<li>Consumption (in Watts): 7</li>
<li>Direct Voltage : 120V</li>
<li>Driver Included : Built-in</li>
<li>LED Chips: CREE</li>
<li>25,000 Hours : Long Life will reduce maintenance cost</li>
<li>Energy saving : Replaces 50W Halogen MR16</li>
<li>5 Year Warranty : Guaranteed to last 5 years</li>
<li>Color Temperature : 3000K</li>
</ul>
</ul>
<br><strong>Commercial:</strong><br>
<ul>
<li>Residential</li>
<li>Commercial</li>
<li>Retail</li>
</ul>"
 
Upvote 0
[/COLOR]
<p><strong>Header in BOLD</strong><br><br>Product description, one or more paragraphs.</p>
<p>Â </p>
<h4>Specifications tab</h4>
<br><strong>Features and Benefits and/or Specifications Bulleted List(s)</strong><br>
<ul>
<li>Bullet Point</li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
</ul>
<br><strong style="line-height: 1.5;">Bold:</strong><br>
<ul>
<li>Bullet point, etc.</li>
<li><span>Bullet point, etc.</span></li>
<li><span>Bullet point, etc.</span></li>
<li><span>Bullet point, etc.</span></li>
</ul>
[COLOR=#333333]
 
Upvote 0
no parse<p><strong>Header in BOLD</strong><br><br>Product description, one or more paragraphs.</p>
<p>Â </p>
<h4>Specifications tab</h4>
<br><strong>Features and Benefits and/or Specifications Bulleted List(s)</strong><br>
<ul>
<li>Bullet Point</li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
</ul>
<br><strong style="line-height: 1.5;">Bold:</strong><br>
<ul>
<li>Bullet point, etc.</li>
<li><span>Bullet point, etc.</span></li>
<li><span>Bullet point, etc.</span></li>
<li><span>Bullet point, etc.</span></li>
</ul>/noparse
 
Upvote 0
<noparse><p><strong>Header in BOLD</strong><br><br>Product description, one or more paragraphs.</p>
<p>Â </p>
<h4>Specifications tab</h4>
<br><strong>Features and Benefits and/or Specifications Bulleted List(s)</strong><br>
<ul>
<li>Bullet Point</li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
<li><span>Bullet Point</span></li>
</ul>
<br><strong style="line-height: 1.5;">Bold:</strong><br>
<ul>
<li>Bullet point, etc.</li>
<li><span>Bullet point, etc.</span></li>
<li><span>Bullet point, etc.</span></li>
<li><span>Bullet point, etc.</span></li>
</ul></noparse>
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top