Results 1 to 2 of 2

Can't set "Fit to Page" in simple VBA macro

Threaded View

finny388 Can't set "Fit to Page" in... 10-18-2011, 04:13 PM
6StringJazzer Re: Can't set "Fit to Page"... 10-18-2011, 10:02 PM
  1. #1
    Registered User
    Join Date
    12-22-2010
    Location
    Fort Rouge, Canada
    MS-Off Ver
    Excel 2010
    Posts
    37

    Question Can't set "Fit to Page" in simple VBA macro

    Recorded a page setup macro and picked out the properties I wanted to set

    All get applied except the last 2 statements in the With clause

    What am I missing?

    ActiveSheet.PageSetup.PrintArea = "$B$1:$N$186"
    With ActiveSheet.PageSetup
        .LeftMargin = Application.InchesToPoints(0.25)
        .RightMargin = Application.InchesToPoints(0.25)
        .Orientation = xlLandscape
        .FitToPagesWide = 1
        .FitToPagesTall = 1
    End With
    Thanks in advance
    Last edited by finny388; 10-18-2011 at 05:06 PM. Reason: grammar

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1