List Box Change Event
What sort of ListBox is it, from the Forms toolbar, or the Control tollbox?
If it is the former, you need to assign a macro, right-clickAssign Macro,
that does the sheet select. If if is the latter, you can add that code to
the worksheet's code module.
---
HTH
Bob Phillips
"Martin" wrote in message
...
Hi,
I have a list box and have the following code in the worksheet module:
Private Sub MyListBox_Change()
Sheets("Report").Select
End Sub
My list box is called MyListBox but when I select it nothing happens. All
I
want is to go to another sheet after the change occurs.
The only thing I can think is the name of my list box is incorrect but it
does show as MyListBox in the cell name drop down but it doesnt appear in
the
defined names. Using 2003.
Can anyone see what I am doing wrong?
Thanks in advance
Martin
|