Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Excel to HTML Web Page Width

Status
Not open for further replies.

m6

Programmer
Oct 10, 2000
19
0
0
US
Dear All,

I have a task that exports a range to an HTML page. In Excel the range is auto sized to fit standard paper for printing. When I open the HTML page in the browser and print, it covers 2 pages (just a bit too wide).

Is there any way to modify the HTML page to fit better? or add coding to the export to fit it better?

My export code:

ActiveWorkbook.PublishObjects.Add(xlSourceRange, filename, "Linage Report", "$B$39:$I$118", xlHtmlStatic, title, "").Publish (True)

Thanks in advance for any help.

Mike (m6)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top