Thread
:
formatting page with VBA
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Sandy Mann
external usenet poster
Posts: 2,345
formatting page with VBA
You have an "s" missing from:
..fitToPagesWide = 1
--
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
Replace @mailinator.com with @tiscali.co.uk
"JBW" wrote in message
...
I've hunted around for a solution to the page formatting problem within
VBA
(very slow). Thought I'd found one but keep getting an error. can you see
anything obviously wrong with this?
Sheets("Statistics").Select
With Worksheets("statistics").PageSetup
.fitToPageWide = 1
.FitToPagesTall = False
.Orientation = xlLandscape
End With
it says theres an error with .fittopageswide = 1
Reply With Quote
Sandy Mann
View Public Profile
Find all posts by Sandy Mann