Setting the Page Name Dynamically

Started by AlexHP, September 10, 2015, 05:00:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AlexHP

Is it possible to set the Page name dynamically based upon the UIVisibility of the pages in the document (or some other method)? In other words, if I have "Page-1", "Page-2", ... "Page-10" and I hide "Page-3", can I dynamically change the page names of all the pages after "Page-3" (i.e. "Page-4" becomes "Page-3", "Page-5" becomes "Page-4", etc.)? I can do this using VBA but I wanted to see if there was a formulaic method using the page shapesheet. Thanks for the help!

Alex...

Nikolay


Noisy Cricket

The question is: What is is that you want to achieve?

- Consider moving the page you intend to hide to the backgroud section so it doesn't print/get numbered?

AlexHP

I figured out what to do using VBA. Essentially, I have 13 pages in my wiring diagram template. Not all of them will be used in any one document. So I want to be able to hide the pages that do not apply (which I figured out how to do) and then renumber the pages so they run in sequence (i.e. Page-1, Page-2, Page-3, etc. and not Page-1, Page-2, Page-5, etc.). I finally came up with a solution that works fine. Thanks!