+ Reply to Thread
Results 1 to 5 of 5

Format Spreadsheet Macro

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    5

    Format Spreadsheet Macro

    Greetings,
    Having trouble with what should be a simple macro.

    All I want to do is set spreadsheet to the following.

    Paper size: Legal
    Orientation: Landscape
    Print Area: 1 page wide by 3 pages tall


    Pretty simple to record, however when I run macro it takes anywhre 45 seconds to 3 minutes to run.

    Any and all help is greatly appreciated.
    Last edited by Hovander; 09-05-2012 at 05:54 PM.

  2. #2
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Format Spreadsheet Macro

    Please Login or Register  to view this content.
    Try that. When you record, it does that loop - and what looks like hundreds of other steps - 3 times

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Format Spreadsheet Macro

    Almost worked.

    On page setup the scaling is set to Adjust to:
    Just need for it to set to Fit To:

  4. #4
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Format Spreadsheet Macro

    ummm... that must be a 2010 bug/feature. The code clearly states that it's using "Fit to"

    The only thing I could suggest, is record the macro on your end, and delete all of the lines above the last with statement and clean it up a bit and delete the useless lines. Record the macro yourself, and post all of the code here and I'll see what's different.

  5. #5
    Registered User
    Join Date
    08-31-2012
    Location
    Albuquerque, New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Format Spreadsheet Macro

    Got it.

    added

    .Zoom = False

    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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