Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Activating a listbox in a dialogsheet
I made a Dialogsheet with a listbox and a OK button.
I unchecked the dismiss control of the OK button so that the Dialogsheet remains open after pressing OK. I set the listbox on top of the tab order. This way it is automatically active when I first show this Dialogsheet. Here is my problem: After pressing the OK button, it remains active and I always have to either click the mouse or hit the tab button to activate the listbox again. Is there a way to automatically active this listbox? I am looking for something like this: Dialogsheets("MyDialog").ListBoxes("MyListbox").Ac tivate Any help would be appreciated. Roger |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Activating a listbox in a dialogsheet
Try putting this in the cmdOK_click routine (or equivalent)
listbox1.setfocus Robin Hammond www.enhanceddatasystems.com "Roger Ritter" wrote in message om... I made a Dialogsheet with a listbox and a OK button. I unchecked the dismiss control of the OK button so that the Dialogsheet remains open after pressing OK. I set the listbox on top of the tab order. This way it is automatically active when I first show this Dialogsheet. Here is my problem: After pressing the OK button, it remains active and I always have to either click the mouse or hit the tab button to activate the listbox again. Is there a way to automatically active this listbox? I am looking for something like this: Dialogsheets("MyDialog").ListBoxes("MyListbox").Ac tivate Any help would be appreciated. Roger |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
listbox B conditional of input in Listbox A | Excel Discussion (Misc queries) | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming | |||
Is refreshing listbox rowsource in listbox click event possible? | Excel Programming | |||
using excel 5 dialogsheet in excel 2000 | Excel Programming | |||
Sorting ListBox results or transposing ListBox values to other cells for sorting | Excel Programming |