O ojv Aug 22, 2008 #1 Application.Selection can contain several items. Is is possible to loop through these ? If so how? Any help appreciated.
Application.Selection can contain several items. Is is possible to loop through these ? If so how? Any help appreciated.
B Bob Phillips Aug 22, 2008 #2 Dim mpArea As Range For Each mpArea In Selection.Areas Debug.Print mpArea.Address Next mpArea -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)
Dim mpArea As Range For Each mpArea In Selection.Areas Debug.Print mpArea.Address Next mpArea -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)
B Barb Reinhardt Aug 22, 2008 #4 Dim myShape as shape dim myChtObj as ChartObject For Each myShape in Selection.Shapes next myShape for Each myChtObj in Selection.ChartObjects Next myChtObj
Dim myShape as shape dim myChtObj as ChartObject For Each myShape in Selection.Shapes next myShape for Each myChtObj in Selection.ChartObjects Next myChtObj
B Bob Phillips Aug 22, 2008 #5 Why didn't you say that in the first place? -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)
Why didn't you say that in the first place? -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)