Export specific cells into precoded HTML

matte629

New Member
Joined
Feb 6, 2014
Messages
1
Hi, I've been trying to search for this but don't seem to figure it out.

My problem, is that i have an excel document with 150 rows which i would like to be inserted into a special HTML-format. It pretty much looks like below. This code should be generated for each row in the excel sheet, and then inputted as a separate .txt-format:



HTML:
<div class="contact-frame"><div class="contact-picture"><img alt="" src="/wp-content/uploads/[Column 4]" /></div><div class="contact-information"><span class="contact-name">[Column 1]</span><br /><span class="contact-post">Vice Ordförande</span><br /><span class="contact-mail">E-Post: [Column 2]<a href="mailto:[Column 3]">[Column 3]</a></span><br /><span class="contact-phone">Telefon: [Column 2]</span></div></div>



The option is to manually copy every cell into this, which wouldn't be preferred. :eek: Really appreciate any help.
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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