Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A bit more generic
Sub Test90023() Dim oSht As Worksheet Set oSht = ActiveSheet Dim lCnt As Long For lCnt = 1 To oSht.Shapes.Count MsgBox oSht.Shapes(lCnt).Name & " at " & oSht.Shapes(lCnt).TopLeftCell.Address Next End Sub -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Helmut Weber" wrote in message ... Hi George, maybe you are looking for something along these lines: Sub Test90023() Dim oSht As Worksheet Set oSht = ActiveSheet Dim lCnt As Long For lCnt = 1 To oSht.Shapes.Count If oSht.Shapes(lCnt).Type = msoFormControl Then MsgBox oSht.Shapes(lCnt).FormControlType End If Next End Sub -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Win XP, Office 2003 "red.sys" & Chr$(64) & "t-online.de" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to count the unrepeated objects on a excel list | Excel Discussion (Misc queries) | |||
User defined buttons in Toolbars,transfer to another computer | Excel Discussion (Misc queries) | |||
Passing Arrays in User Defined Objects | Excel Programming | |||
User Defined Objects in VBA? | Excel Programming | |||
objects (buttons, dropdown list) move after print | Excel Programming |