-
Solved: Number of Print Pages
Hopefully this is an easy one....
I am setting up a script that creates a report and then gives the user the option to print it. However, I wan't to check the number of pages before it is sent to the printer. This way I can alert the user that the report will be over XX Number of pages.
Obviously, if the report is small it will just print. But depending on the data requested the report can range from 2 pages to over 50 pages.
Is there a property that will show the number of pages the report will print on before sending it to the printer?
Thanks!
-
Last edited by Pinokkio; 08-22-2006 at 10:43 AM.
-
Hi GMan,
try this line in a sub:
MsgBox ExecuteExcel4Macro("Get.Document(50)")
Greetings
P.
-
Thanks Pinokkio!!! this is exactly what I was looking for.
-
gladly that I could help
P.
-
Hi Pinokkio,
Welcome to VBAX.
Great to someone start straight off with an answer.
Regards
MD
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules