Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dave Peterson wrote
If I had noticed that activecell reference, I would have changed this line: If HPB.Location.Row ActiveCell.Row Then Exit For to If HPB.Location.Row foundcell.Row Then Exit For Personally, I make enough typing mistakes that I'd want that check included. That works, and makes the eye-pleasing difference that focus isn't taken to activecell during execution. Point taken on including the name check. Another observation: VPC isn't even needed. I eliminated VPC = 1 line and changed NumPage = NumPage + VPC to NumPage = NumPage + 1 and nothing broke. I believe it was included in the original code I "borrowed" and trimmed that had a check for vertical page breaks which weren't necessary to meet my needs. -- David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print 1st Page Multiple Sheets in Same Workbook | Excel Discussion (Misc queries) | |||
How can I get the 1st 2 rows on my document to print on all pages | Excel Discussion (Misc queries) | |||
Print pages in a different order | Excel Discussion (Misc queries) | |||
Print Odd/ Even or specified pages in excel at a time. | Excel Discussion (Misc queries) | |||
Print several worksheets at once with fewer pages | Excel Discussion (Misc queries) |