Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All. I have the following bits of code:
Sub Main() UserForm1.Show End Sub Private Sub UserForm_Initialize() Set mRng = Sheets("Picklist").Range(Cells(2, "a"), Cells(2, "a").End(xlDown)) For Each c In mRng ComboBox1.AddItem c Next c End Sub I would like my Sheet "Picklist" to be hidden. When it is hidden, my code errors out on the line UserForm1.Show. When I unhide the sheet "Picklist" and execute the code, it works perfectly. Any ideas on how I can execute the code while the sheet "Picklist" is hidden?? Thanks so much. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel VB - show userform1 (at same time) minimized application win | Excel Discussion (Misc queries) | |||
how do i use UserForm1.Show vbModeless command? | Excel Programming | |||
UserForm1.show fails if another workbook is open | Excel Programming | |||
What's the difference between 'Set UserForm1=Nothing' and 'Unload UserForm1' ? | Excel Programming | |||
SetFocus to first textbox on userform upon Userform1.Show | Excel Programming |