Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to create a form control over a specific cell
I'm trying to automatically create form controls such as check boxes and put
them on a work sheet. The function that has to be called appear to be ActiveWorksheet.Shapes.AddFormControl(xlCheckBox,L eft,Top,Width,Height) I'd like it to be placed over a specific cell but AddFormControl requires coordinates in pixels. Is there any way to get the pixel coordinates of a cell? Do you know any other way to accomplish this task? Thank you. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to create a form control over a specific cell
"Valerio" ha scritto nel messaggio
... I'm trying to automatically create form controls such as check boxes and put them on a work sheet. Ok, I found the answer by myself... I'm posting it here if someone else need it. Set c = ws.Range("c32") Set cb = ws.Shapes.AddFormControl(xlCheckBox, c.left, c.top, c.Width,c.Height) The properties left / top etc. are what I needed. Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2007 Form Control/ActiveX Control font difference | Excel Discussion (Misc queries) | |||
two questions, Yes/No form control, and how did they create this adjustable area on the sheet... | Excel Discussion (Misc queries) | |||
two questions, Yes/No form control, and how did they create this adjustable area on the sheet... | Excel Worksheet Functions | |||
Is it possible to create a dynamic range in CONTROL TOOLBOX (form) | Excel Discussion (Misc queries) | |||
How do I create a form in a worksheet with control option buttons. | New Users to Excel |