Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this as part of a form. When I run the form from a program, if I just
accept the form defaults, the value for listbox2 is "LIVE" and listbox3 is "". In the Tab Order for the form, Listbox 2 is above Listbox3. If I change this order in the Tab Order then in the program, listbox2 is "" and listbox3 is "LONG". Can anyone tell me what is causing this behaviour please? I want both listboxes to contain the default values when the form is exited. I am using excel xp Thanks Chris Private Sub UserForm_initialize() Dim d1 As String TextBox1.Value = 30 TextBox4.Value = 90 TextBox18.Value = 20 TextBox24.Value = 30 ListBox2.AddItem "LIVE" ListBox2.AddItem "BACKTEST" ListBox2.ListIndex = 0 ListBox3.AddItem "LONG" ListBox3.AddItem "SHORT" ListBox3.ListIndex = 0 TextBox3.Visible = False TextBox10.Visible = False TextBox27.Visible = False Label32.Visible = False Label6.Visible = False ListBox2.Value = "LIVE" ListBox3.Value = "LONG" End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Form Repaint Problem | Excel Discussion (Misc queries) | |||
User Form Problem | Excel Discussion (Misc queries) | |||
User Form Problem | Excel Discussion (Misc queries) | |||
DATA FORM problem | Excel Programming | |||
problem with user form | Excel Programming |