+ Reply to Thread
Results 1 to 5 of 5

Automatic Sheet Numbering

  1. #1
    Registered User
    Join Date
    11-05-2008
    Location
    Vancouver
    Posts
    3

    Automatic Sheet Numbering

    I have a report blank that is comprised of numerous excel worksheets (fixed letter size). During the completion of the report, one may add, delete, and/or move worksheets. I want each worksheet to have a cell that dispalys 'page # of total number of sheets'. Is there a way to automatically update this information?
    Last edited by VBA Noob; 11-06-2008 at 02:06 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    If there is a cell that ALWAYS has something in it on every sheet, like A1, this would work to count sheets:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-05-2008
    Location
    Vancouver
    Posts
    3
    thank you.

    I am a bit of a novice and was wondering if someone could let me know how to get the sheet index number so that I can assign it as 'page of page count'?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello stephenkollen,

    When you refer to the sheet index number are you referring to the the creation order of the sheet or the code name e.g. Sheet1, Sheet2?

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    11-05-2008
    Location
    Vancouver
    Posts
    3
    Thanks for all the help. I came up with the follwing code that works OK.

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 11-06-2008 at 02:05 PM. Reason: Added code tags as per forum rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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