Refresh of page tabs

A

Andy

Depending upon the mode of my application I am changing the visibility
of some of the page tabs from VBA. This works fine, apart from the fact
that the page tabs are not refreshed. Does anyone know if there is
there a way to force the refresh of the page tabs without changing to a
different page an back again.

Thanks
 
J

JuneTheSecond

It seems there is not a method just fits.
One idea may be to go to another page and return.
For example:
Dim ThisPage As Visio.Page
Dim AnotherPage As Visio.Page
Dim myPage As Visio.Page
Set ThisPage = ActivePage
For Each myPage In ThisDocument.Pages
If Not myPage Is ActivePage Then
Set AnotherPage = myPage
Exit For
End If
Next
If Not AnotherPage Is Nothing Then
ActiveWindow.Page = AnotherPage
ActiveWindow.Page = ThisPage
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top