Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I would like to adress all controlelements in my worksheet one by one using the "For Each"- statement, but i can't get it working. Dim i As Controls For Each i In Worksheets("Sheet1") MsgBox i.Name Next Hoping for help Claus |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Claus,
try something like this: for each oleobject in worksheets("Sheet1").oleobjects Regards, Ivan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim i As Long
For i = 1 To ActiveSheet.OLEObjects.Count MsgBox ActiveSheet.OLEObjects(i).Name Next i -- HTH Bob Phillips (remove xxx from email address if mailing direct) "Claus" wrote in message ... Hi I would like to adress all controlelements in my worksheet one by one using the "For Each"- statement, but i can't get it working. Dim i As Controls For Each i In Worksheets("Sheet1") MsgBox i.Name Next Hoping for help Claus |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ivan
Thank you, it works ;-) Claus "Ivan Raiminius" skrev i en meddelelse oups.com... Hi Claus, try something like this: for each oleobject in worksheets("Sheet1").oleobjects Regards, Ivan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Control in Chart Sheet | Charts and Charting in Excel | |||
Control Sheet | Excel Worksheet Functions | |||
Control on Sheet - Drop Down 1 | Excel Programming | |||
Control End After the Sheet is Modified | Excel Discussion (Misc queries) |