Hiding the Pagetab

N

Nils Schacht

Hello again,

i don't how to hide the Pagetab an the bottom of my VisioDrawingControl or
how i can catch the mousebutton Event on the Pagetab.
Can somebody give me a hint?

Greetings

Nils
 
P

Paul Herber

Hello again,

i don't how to hide the Pagetab an the bottom of my VisioDrawingControl or
how i can catch the mousebutton Event on the Pagetab.
Can somebody give me a hint?

Can't be done.
 
J

JuneTheSecond

page tab could be hidden for example,
Sub test()
ActivePage.PageSheet.Cells("UIVisibility").FormulaU = "1" 'Show 0, Hide 1
RefreshPages
End Sub

Sub RefreshPages()
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
End Sub
 
P

Paul Herber

My apologies, I didn't know that.

page tab could be hidden for example,
Sub test()
ActivePage.PageSheet.Cells("UIVisibility").FormulaU = "1" 'Show 0, Hide 1
RefreshPages
End Sub

Sub RefreshPages()
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
End Sub
 

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