ChiliDog007
Technical User
is there a way to select shapes from VB6 and group them?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub macro1()
With ThisDocument.Pages("Page-1")
For Each x In .Shapes
y = Right(x.Name, Len(x.Name) - InStrRev(x.Name, "."))
Select Case y
Case 7, 8, 9
ActiveWindow.Select x, visSelect
End Select
Next
ActiveWindow.Group
End With
End Sub
Private Sub Command1_Click()
Dim visApp As Visio.Application
Dim visDoc As Visio.Document
Dim x As Visio.Shape
Dim y As Integer
Set visApp = New Visio.Application
Set visDoc = visApp.Documents.Open("c:\test.vsd")
visApp.Visible = True
Set visPage = visDoc.Pages.Item(1)
With visPage
For Each x In .Shapes
y = Right(x.Name, Len(x.Name) - InStrRev(x.Name, "."))
Select Case y
Case 7, 8, 9
visApp.ActiveWindow.Select x, visSelect
End Select
Next
visApp.ActiveWindow.Group
End With