J
JS
Hi All,
I need to manipulate, via a VBA macro, several objects I've already selected
before running the macro. However, In this selection, there are several
objects that need to be exclided from the selection (and from being
manipulated by the macro). I've created some code to do this but I've run
into a problem, I don't know how to deselect object from a selection.... Con
someone please give me a clue?
Thanks so much! JS
Sub DoSomething ()
Dim oSlide As Slide, Shp As Shape
Set xxx = ActiveWindow.Selection.ShapeRange
ActiveWindow.Selection.Unselect
For Each Shp In xxx
If Shp.Type <> msoLine Then
xyz.ShapeRange.Add Shp '<== THIS DOESN'T WORK
End If
Next
xyz.Select
End Sub
I need to manipulate, via a VBA macro, several objects I've already selected
before running the macro. However, In this selection, there are several
objects that need to be exclided from the selection (and from being
manipulated by the macro). I've created some code to do this but I've run
into a problem, I don't know how to deselect object from a selection.... Con
someone please give me a clue?
Thanks so much! JS
Sub DoSomething ()
Dim oSlide As Slide, Shp As Shape
Set xxx = ActiveWindow.Selection.ShapeRange
ActiveWindow.Selection.Unselect
For Each Shp In xxx
If Shp.Type <> msoLine Then
xyz.ShapeRange.Add Shp '<== THIS DOESN'T WORK
End If
Next
xyz.Select
End Sub