Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I want to know the number of textboxes that is placed on a sheet, and their names. How can i get the data from each control at runtime as i don't know how many controls are placed on that particular sheet? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
form the drawing toolbar
msgbox activesheet.Textboxes.count for control toolbox toolbar textboxes Dim cnt as long, obj as OleObject cnt = 0 for each obj in Activesheet.OleObjects if type of obj.Object is MSforms.Textbox then cnt = cnt + 1 end if Next msgbox cnt -- Regards, Tom Ogilvy "Vikram Kohli" wrote in message ... Hi, I want to know the number of textboxes that is placed on a sheet, and their names. How can i get the data from each control at runtime as i don't know how many controls are placed on that particular sheet? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Vikram,
This should help Dim i As Long Dim OLEObject As Object For Each OLEObject In ActiveSheet.OLEObjects If TypeOf OLEObject.Object Is MSForms.TextBox Then i = i + 1 End If Next OLEObject MsgBox i -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Vikram Kohli" wrote in message ... Hi, I want to know the number of textboxes that is placed on a sheet, and their names. How can i get the data from each control at runtime as i don't know how many controls are placed on that particular sheet? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting data from sheet to sheet | Excel Discussion (Misc queries) | |||
How do I split form controls in a sheet in excel? | Excel Discussion (Misc queries) | |||
how to activate controls in protected sheet | Excel Worksheet Functions | |||
ActiveX Controls vs Form Controls | Excel Discussion (Misc queries) | |||
Need more than 1208 controls per sheet | Excel Discussion (Misc queries) |