The application: VBA macro in which various Excel worksheets get printed, depending on the user's print selection via radio buttons.
The problem: As part of the macro, the print range has to be set, and the number of pages in the printed report echoed to the user, both of which depend on the relevant worksheet selected for printing. My coding for this is:
Expand|Select|Wrap|Line Numbers
- Print_Range = "A8:I" & ActiveCell.SpecialCells(xlLastCell).Row
- dPages = ExecuteExcel4Macro("GET.DOCUMENT(50)")
I hope I've explained this clearly. Thank you guys for bringing me along in VB.
Annie