Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Give this a try...
Sub test() Dim ctl As OLEObject For Each ctl In Sheet1.OLEObjects MsgBox ctl.Object.BackColor Next ctl End Sub Your code will work but it needs to refernece the object then the backcolor... -- HTH... Jim Thomlinson "Bert" wrote: I want to be able to manipulate and get information about a large number of commandbuttons using something like: x = Worksheets(2).OLEObjects.Count For b = 1 To x xx = Worksheets(2).OLEObjects.Item(b).BackColor Next b This generates a error. (Although xx = Worksheets(2).OLEObjects.Item(b).Name does not) The only objects in the OLEObjects collection are commandbuttons. How can I make this work? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to copy commandbuttons | Excel Programming | |||
CommandButtons | Excel Programming | |||
Commandbuttons | Excel Programming | |||
Do While, OnTime and CommandButtons | Excel Programming | |||
commandbuttons properties | Excel Programming |