+ Reply to Thread
Results 1 to 3 of 3

Print "X" number of pages based on a cell value.

  1. #1
    Registered User
    Join Date
    04-21-2014
    Location
    Napa, CA
    MS-Off Ver
    Excel 2013
    Posts
    5

    Print "X" number of pages based on a cell value.

    Thank you to the person who responds in advance. My last post was answered very well and very fast I am very appreciative of that. This question is similar, but more complex. I have 27 pages on one sheet. If cell b33 equals 1 then print page 1 copies 3 and print page 2 copies 4, if cell b33 equals 2 print page 1 copies 3 and print from 2 to 3 copies 4, etc....

  2. #2
    Registered User
    Join Date
    04-21-2014
    Location
    Napa, CA
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Print "X" number of pages based on a cell value.

    I know I can create 26 different buttons that specify pages:
    Sub Macro18()
    ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=3, Collate _
    :=True
    ActiveWindow.SelectedSheets.PrintOut From:=2, To:=2, Copies:=4, Collate _
    :=True
    End Sub
    Sub Macro19()
    ActiveWindow.SelectedSheets.PrintOut From:=1, To:=2, Copies:=3, Collate _
    :=True
    ActiveWindow.SelectedSheets.PrintOut From:=2, To:=3, Copies:=4, Collate _
    :=True
    End Sub
    Sub Macro20()
    ActiveWindow.SelectedSheets.PrintOut From:=1, To:=2, Copies:=3, Collate _
    :=True
    ActiveWindow.SelectedSheets.PrintOut From:=2, To:=4, Copies:=4, Collate _
    :=True
    End Sub
    Where Macro18() is used when the user confirms that B33 equals 1, or Macro19() when the user confirms B33 equals 2, or Macro20() when the user confirms B33 equals 3, but what I would like is for the macro to determine the value of B33 and print using the rules of the various macros so I can eliminate user error. Maybe there is a conditional argument that says if B33 equals 1 then (insert rules here), if equals 2 (insert rules here)....

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Print "X" number of pages based on a cell value.

    You mean like this?

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Splitting a Cell based on "/" and adding new Rows based on Part Number Logic
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-30-2013, 10:11 AM
  2. [SOLVED] Macro to print number of pages based on cell
    By Webbers in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2012, 02:15 PM
  3. print pages based on number in cell
    By lpratt in forum Excel General
    Replies: 3
    Last Post: 01-10-2012, 08:08 PM
  4. Print number of pages based on cell value
    By Rene Pronk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2011, 07:46 AM
  5. Replies: 2
    Last Post: 02-24-2009, 03:52 PM

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