Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob,
I have multiple Userforms in my app; I have inserted a line in your code Dim MyFormName as String MyFormName = Inputbox("Enter Form Name") On Stepping-thru (even of inception) I get Compile error Invalid Qualifier With MyFormName highlite within the statement: For Each ctl In MyFormName.Controls What have I done wrong? Can it be fixed? How? TIA, Jim "Bob Phillips" wrote in message ... Here's some code Dim ctl As Object Dim i As Long On Error Resume Next For Each ctl In UserForm1.Controls i = i + 1 Cells(i, "A").Value = TypeName(ctl) Cells(i, "B").Value = ctl.Name Cells(i, "C").Value = ctl.Caption Cells(i, "D").Value = ctl.Value Next ctl -- HTH RP (remove nothere from the email address if mailing direct) "Jim May" wrote in message news:zdH8f.28498$OM4.3029@dukeread06... Is there an excel utility that will "dump" to a sheet (with headings) the various Controls (name, caption, etc...) currently in use in a Project's Forms folder? If so, where would I find such? I searched Google without any luck. TIA, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I fill a cell in a user form from a selection on same form? | Excel Discussion (Misc queries) | |||
Display form from an VB application in Excel | Excel Discussion (Misc queries) | |||
How to: User Form to assign a user defined range to a macro variab | Excel Programming | |||
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form | Excel Programming |