PDA

View Full Version : Solved: Active Object



MWE
10-23-2005, 08:33 PM
Is there a way to know programatically what shape or group of shapes are presently active? Poking around the VBA Object Browser, I did not find anything like "ActiveShape" nor did I find a shape property like "Active" or similar.

Jacob Hilderbrand
10-23-2005, 08:49 PM
Try this.


Dim Shp As Variant

On Error Resume Next
For Each Shp In Selection
MsgBox Shp.Name
Next
On Error GoTo 0

MWE
10-25-2005, 07:25 AM
Try this.


Dim Shp As Variant

On Error Resume Next
For Each Shp In Selection
MsgBox Shp.Name
Next
On Error GoTo 0

thanks. That is an interesting and useful approach