A
antonywalsh
I hope someone can help because this is driving me absolutely bonkers
This should be something so easy yet....
I am trying to print a number of pages depending on a cell value whic
is a value of a formulae.
Code
-------------------
Sub PRINT_GENERIC()
Sheets("GENERIC").Select
a = Range("Z1").Value
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=a, Copies:=1
Sheets("MAINSHEET").Select
End Su
-------------------
The whole worksheet has page breaks in it to make 40 pages. Every tim
the above macro is run it will print 40 pages regardless of the value o
(a).
What am I doing wrong?
Thank
This should be something so easy yet....
I am trying to print a number of pages depending on a cell value whic
is a value of a formulae.
Code
-------------------
Sub PRINT_GENERIC()
Sheets("GENERIC").Select
a = Range("Z1").Value
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=a, Copies:=1
Sheets("MAINSHEET").Select
End Su
-------------------
The whole worksheet has page breaks in it to make 40 pages. Every tim
the above macro is run it will print 40 pages regardless of the value o
(a).
What am I doing wrong?
Thank