« Looping through | Main | Highlighting images using a mask »

Monday, 12 November 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54ede3f24883300e54f8145eb8833

Listed below are links to weblogs that reference Hiding Pages:

Comments

John Marshall

Interesting. So would you add an event to handle page deletions and readjustthe User cell to account for the missing page?

John Goldsmith

Hello John,

My ShapeSheet based solution certainly requires the user to keep the User cell array and the pages synchronised and of course you're right, a code based event handler would be required in any normal scenario.

David Parker also suggested a nice form based UI for the hiding function and I'll include both these suggestions in the next VBA based 'Hiding Pages' post.

One thing I notice from further testing is that hidden pages (via the UIVisibility cell) show up in the Drawing Explorer if this is refreshed by closing and reopening it. It would appear that either 'Help' is incorrect when it says that Drawing Explorer is covered by UIVisibility or there a small bug in the Explorer refresh.

Anyway, thanks for your comment and stay tuned for the VBA update.

Best regards

John

kedas

if you want you can just make an user.hide per page.

Sub UnhideAllpages()

Dim vsopage As Visio.page
For Each vsopage In ThisDocument.pages
vsopage.pagesheet.CellsSRC(visSectionObject, 10, visPageUIVisibility).FormulaU = 0

' vsopage.pagesheet.CellsSRC(visSectionObject, 10, visPageUIVisibility).FormulaU = "user.hide"
Next

End Sub

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.