I need to create some code that performs the following:
for every page in the active visio document:
1) remove the background
2) select all connectors and change to weight 1 (hairline?)
3) set the zoom to “page” (instead of x%)
I have had a go at (1) using the help, this seems to work:
Public Sub changeBackPage()
Dim pagsObj As Visio.Pages ‘Pages collection
Dim pagObj As Visio.Page ‘current page in collection
Dim i As Integer ‘current index into collection
Dim bg As String
‘Retrieve the Pages collection.
Set pagsObj = ActiveDocument.Pages
bg = “”
‘Iterate through the collection.
For i = 1 To pagsObj.Count
‘Retrieve the Page object at the current index.
Set pagObj = pagsObj(i)
pagObj.BackPage = bg
Next i
End Sub