Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Howdy
Need in Excel 97 to programmatically create some control toolbar checkboxes and set both (I think the terminology is) the object and container names to the same name "cb_r" & i & "c" & j What code do I need to add to my snippet of my code below to set both names? Thanks Matt Set cb = ws.OLEObjects.Add(ClassType:="Forms.CheckBox.1", _ Left:=intLeftLocation, _ Top:=cellUnder.Top + 2, _ Width:="13.5", _ Height:="15", _ DisplayAsIcon:=False) With cb 'add other info .Name = "cb_r" & i & "c" & j 'name the checkbox with it's row and column number .LinkedCell = Worksheets("Data-PMProducts-LinkedCells"). _ Range("anchorpoint_LinkedCells").Cells(i, j).Address(external:=True) .Placement = xlMove ' This lets each check box stay with its row during sorts. NEEDED??? With .Object .BackColor = &H80000005 .BackStyle = fmBackStyleTransparent .Caption = "" End With End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HOW DO I GIVE A CONTROL TOOLBOX CHECKBOX A VALUE IN EXCEL? | Excel Worksheet Functions | |||
how to delete or remove checkbox form control in Excel? | Excel Discussion (Misc queries) | |||
URGENT : How to get CHECKBOX object value from a Excel Worksheet by a C# Class | Excel Programming | |||
Excel - adding control programmatically. | Excel Programming | |||
OLE Container Control in VB.NET | Excel Programming |