Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
listbox B conditional of input in Listbox A Kim K Excel Discussion (Misc queries) 1 October 31st 06 08:27 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM
using excel 5 dialogsheet in excel 2000 Roger[_6_] Excel Programming 2 July 14th 03 10:04 AM
Sorting ListBox results or transposing ListBox values to other cells for sorting Rob[_8_] Excel Programming 1 July 9th 03 04:35 AM


All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"