+ Reply to Thread
Results 1 to 6 of 6

Count pdf pages in folder

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Count pdf pages in folder

    Hey

    Is there anyway to count number of pdf pages in "home" folder in desktop? ( the home folder has multi folders and multi pdf files in the folders )

    and just show the result in A1

    Thanks

  2. #2
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: Count pdf pages in folder

    This code may help, but its show all paths and every file has x pages, i just want to print total pages in all files
    Please Login or Register  to view this content.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Count pdf pages in folder

    Try changing this:

    Please Login or Register  to view this content.
    To this:
    Please Login or Register  to view this content.
    And place lPDF_PageCount where you want the value displayed.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: Count pdf pages in folder

    Sorry but I didnt get it, I want to print only the number
    kindly can I have ready excel file?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,918

    Re: Count pdf pages in folder

    Share the workbook where you tried to implement the suggestion.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: Count pdf pages in folder

    I have this excel

    its didn't see the pdf files in subs folders, only see in main folder, I want to fix this
    also no need to print table with file name and number of pages
    I just want to save this values in variable
    npages = total numbers of pages ( in all files )
    nfiles = total number of pdf files ( in all folders in path )
    size = size of the main folder I selected in path ( mean how many MB - GB? )

    Thanks
    Attached Files Attached Files
    Last edited by Undo; 01-16-2021 at 04:22 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Count the number of pages (except pages with no data)
    By minhys1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-22-2020, 02:23 AM
  2. VBA to count # of pages not working
    By louhilla in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2018, 10:36 AM
  3. [SOLVED] Count Rows Based On User Input & Trigger Print Of Pages Out Of Count Result
    By wliang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 02:45 AM
  4. Count printing pages
    By mohan.r1980 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2010, 11:33 PM
  5. Pages Count; Plan B
    By Rookie 1st class in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2005, 03:55 PM
  6. COUNT ACROSS SEVERAL PAGES
    By OZDOC1050 in forum Excel General
    Replies: 3
    Last Post: 09-05-2005, 02:05 PM
  7. count pages programmatically
    By tjtjjtjt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2005, 10:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1