If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Dynamically Adding Textbox To Frame
How do I add a textbox control to a frame object (declared as OLEObject) in
vba code behind a worksheet? For example, I have tried the following that doesn't work... Dim objFrame As OleObject Set objFrame = ActiveSheet.OLEObjects.Add(ClassType:="Forms.Frame .1") With objFrame .Object.Controls.Add ClassType:="Forms.Textbox.1" End With |
Thread Tools | |
Display Modes | |
|
|