+ Reply to Thread
Results 1 to 4 of 4

Print macro printing sheets in wrong order

  1. #1
    Registered User
    Join Date
    07-28-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    91

    Print macro printing sheets in wrong order

    Hi all,

    I have written the following macro to print selected sheets in my workbook:

    Please Login or Register  to view this content.
    In the code the sheets are in the order they appear in the workbook and this is the order I would like them to print in. However I have added some of these sheets after others and it prints as follows:

    Important Information
    Total Costs
    Costing 3
    Costing 2
    Costing 1
    extra Information

    Is there something I can add to make it print in the order I want?

    Thanks,
    James
    Last edited by j.farr3ll; 12-08-2011 at 09:13 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Print macro printing sheets in wrong order

    hi j.far3ll, try sort of that:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-28-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Print macro printing sheets in wrong order

    Hi watersev,

    This does sort the ordering issue, but you have removed the following portion of code:

    Please Login or Register  to view this content.
    I need this to be included as the workbook will be run of multiple laptops and this allows the user to select the printer connected to the laptop.

    I have tried inserting this back into the code as follows:

    Please Login or Register  to view this content.
    But this now asks to select the printer for each sheet (6x) is there a solution to get it to print in this order but have the select printer option only appear once?

    Thanks,
    James

  4. #4
    Registered User
    Join Date
    07-28-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Print macro printing sheets in wrong order

    The following tweak to the code worked....

    Please Login or Register  to view this content.
    Thanks for the help.

+ 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