Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
What is the proper way to use this method? Not having any luck.
Also tried using oDoc.Sheets.Item(2) for Target Sheet.
Public Sub MoveViews()
Dim oApp As Application
Set oApp = ThisApplication
Dim oDoc As DrawingDocument
Set oDoc = oApp.ActiveDocument
Dim oSheet As Sheet
Set oSheet = oDoc.ActiveSheet
' Check to make sure a view was selected.
If Not TypeOf oDoc.SelectSet.Item(1) Is DrawingView Then
MsgBox "A drawing view must be selected."
Exit Sub
End If
Dim oDrawingView As DrawingView
Set oDrawingView = oDoc.SelectSet.Item(1)
' Test to see if we have the view
oDrawingView.ShowLabel = True
' Move view to target sheet
oDrawingView.MoveTo ("Sheet:2")
End Sub
Solved! Go to Solution.

