VBA in Excel to Export HTML's

staffie007

Board Regular
Joined
Oct 21, 2005
Messages
92
Hey all,

I have 700 rows of data, grouped in groups of about 20 each.

Im wanting to export the groups into seperate web pages all using one template.
I have it exporting the information and saving the document using
Code:
        With ActiveWorkbook.PublishObjects.Add(xlSourceSheet, _
            "C:\Documents and Settings\Jason\My Documents\My Web Sites\NOC\Human Resources\NOC Human Resources - " & Office(1).Cluster & ".htm" _
            , ActiveSheet.Name, "", xlHtmlStatic, _
            "NOC Human Resources - " & Office(1).Cluster, "")

The problem is that Im wanting it on a black background and using this command causes the center to be black (where the cells are) and then the rest of the page to be white.

Is there anyway I can publish them using a black background?
Even if I have to use a different save command as its saving all of the pages onto my my docs and not uploading them.

Thanks!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

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