Excel VBA: Count Number of Print Pages on a Worksheet

preview_player
Показать описание
In this video, we solve a question that was asked by one of our viewers recently - how to count the number of print pages on a worksheet using Excel VBA.

More specifically they wanted a list of a range of sheet names in a workbook, and the number of print pages for each of those worksheets.

This was not something (I believe) that I had done before. But it did not take long to find a solution that would work.

I thought this would be a great challenge for those of you starting, or are early, on your journeys to learn Excel VBA.

You can download the workbook from the link below and try and solve the question yourself.

Find more great free tutorials at;

*** Online Excel Courses ***

Connect with us!

Рекомендации по теме
Комментарии
Автор

Hello, thanks for information. But how i cant get de current page?

fabiogarces
Автор

very great, it's a job of a real professional
thank you Mr Alain

AbuTalha-eopr
Автор

Alan, thanks for your clean and efficient coding.
I used a Do While loop, an InputBox, the PrintOut method and two variables to get the page count.
howie

sawirusj
Автор

Very informative video. Good work on VBA programming. Looking more for it.

kvlpnd
Автор

Is there a link with the macro included?

ioannissakarelis
Автор

1)How to insert page numbers in each page of a PDF file and
2) how to repeat the row headers in eaxh page when excel is converted to PDF based on a row value

vamanshenoy
Автор

How many pages have I printed? What is the page count? store in databased using coding . plzz

saurabhmaurya