Need a macro to index page numbers so that it sees total number of pages and opens up that many tabs and next tab will show Page 2 of 5, Page 3 of 5 etc.
sample file attached. Thanks
Need a macro to index page numbers so that it sees total number of pages and opens up that many tabs and next tab will show Page 2 of 5, Page 3 of 5 etc.
sample file attached. Thanks
Last edited by rm7302; 06-03-2010 at 12:35 PM.
Try this
![]()
Please Login or Register to view this content.
Enter the number of sheets you want in cell D10, run the macro
Delete all the new sheets leaving Page 1 of D10 value
Run the macro with a new value in D10
This Macro will only work if there is one sheet in the workbook.
EDIT
Corrected this error in message
Thanks romperThis Macro will only work when there is more than one sheet in the workbook.
Last edited by Marcol; 06-03-2010 at 09:57 AM.
Correct romper, you are really on fire today!!!, ..... and I am having a bad hair day!!!
Thanks for your reply Marcol, but this is what I want..........
I do not want the tabs to be "Page 1 of …..", the tabs are still going to show 1,2,3 etc depending on the value in cell D10. But in each worksheet the value in cell B10 is going to index by the tab number. For example worksheet 2, row 10 will read Page 2 of 10, for worksheet 3, row 10 will be Page 3 of 10.
Thanks again.
Is this better?
![]()
Please Login or Register to view this content.
Same rules as before still apply
Hope this helps.
If you need any further information, please feel free to ask further
However
If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
Also
If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks