+ Reply to Thread
Results 1 to 3 of 3

Macro to setup printing options for whole workbook

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    Jersey
    Posts
    57

    Macro to setup printing options for whole workbook

    Hi
    Have the following code that i did in order to set all sheets on the workbook to have the same printing options, unfortunatly when i changed the code so it applies to all worksheets, VBA doesn't like my aproach. Could someone help, please?

    Please Login or Register  to view this content.
    Many thanks
    Jsantos
    Last edited by jsantos; 09-29-2012 at 06:06 PM.

  2. #2
    Forum Contributor
    Join Date
    02-15-2010
    Location
    Everett, WA
    MS-Off Ver
    All versions; most components
    Posts
    188

    Re: Macro to setup printing options for whole workbook

    You are missing the end of the "For/Each" loop. Also, you probably shouldn't use "PageSetup" as the name of the Sub, since "PageSetup" already means something in VBA. Try this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-16-2008
    Location
    Jersey
    Posts
    57

    Re: Macro to setup printing options for whole workbook

    Many thanks gyclone
    That does the trick

    Regards
    Jsantos

+ 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