The best way I can explain this is with images below. Listbox1 is on the left, large Textbox3 on the right.
Excel's compile keeps trying to identify Textbox3 as a variable saying its not defined, which of course its not.
Textbox3 is the large textbox. Everything in the code below works great after its in run mode. Its only when
the workbook is closed and reopened does this problem appear. I can't figure it out. This is all on a SHEET, NOT
a userform, But that should make no difference - should it ? Code:
Why is excel trying to recognize Textbox3 highlighted in blue and Listbox1 in yellow as a variable and issuing a Compile error message?
We know its a Textbox object - not a variable.
Something simple I can't figure out.
Please help with this if you see what's happening here .
Thanks for anyone's help.
cr
Excel's compile keeps trying to identify Textbox3 as a variable saying its not defined, which of course its not.
Textbox3 is the large textbox. Everything in the code below works great after its in run mode. Its only when
the workbook is closed and reopened does this problem appear. I can't figure it out. This is all on a SHEET, NOT
a userform, But that should make no difference - should it ? Code:
VBA Code:
Private Sub Worksheet_Activate()
ListBox1.Visible = True
ListBox1.Height = 337.5
Me.ListBox1.ListIndex = 0
End Sub
Why is excel trying to recognize Textbox3 highlighted in blue and Listbox1 in yellow as a variable and issuing a Compile error message?
We know its a Textbox object - not a variable.
Something simple I can't figure out.
Please help with this if you see what's happening here .
Thanks for anyone's help.
cr