Thread: Page Count
View Single Post
 
Old 05-16-2022, 12:33 PM
ranjan ranjan is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: May 2021
Posts: 77
ranjan is on a distinguished road
Default Page Count

Hi,

I want to extract a page no.'s of documents in a folder.

In a Excel Column A is File name & Column B is Page No.'s

While running a macro file names in a folder should get copied into Column A and then corresponding page no's get pasted in column B.

I dont know whether it is possible through VBA or not, if it does not seems realistic please excuse.

I tried with RegExp.Pattern = "/Type\s*/Page[^s]" , its not working. its working only with PDF formats.

Format : ".docx" & ".rtf" & ".pdf"
Folder selection by browse option.
Strpath = Input("Please enter files pat")


Your Help is highly appreciated ...

Last edited by ranjan; 05-16-2022 at 12:36 PM. Reason: Added PDF
Reply With Quote