| |
takeda kozo
Posts: 83
Score: 0
Joined: 11/9/2005
Status: offline
|
Hey guys, I would like to change the %'age zoom on my excel sheet and then save Any ideas what I am doing wrong ? :( I've flagged the dodgy line of my code. The script runs ok, but when opening the XLS file after completion of the script, the zoom is still sitting at 100% ??? Thanks ~ +++++++++++++++++++++++++ Set oExcel = CreateObject("Excel.Application") oExcel.Visible = False oExcel.DisplayAlerts = False Set oWorkbook = oExcel.Workbooks.Add Set oWorksheet = oWorkbook.Worksheets(1) oWorksheet.Cells(1, 1).Value = "HOSTNAMES" oExcel.Worksheets(1).PageSetup.Zoom = 200 ' THIS LINE DOESN'T WORK oWorkbook.SaveAs("c:\temp\report.xls") oExcel.Quit +++++++++++++++++++++++++
|
|