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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

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