Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Listbox Select items with Keyboard.


Hi,
I have a listbox whose RowSource is changed depending on which command
button is clicked. I have been able to transfer the focus from the
command button to the listbox as the command button is clicked,
however, I can’t seem to find a way to select items from the listbox
using just the keyboard, selecting with the mouse works just fine but I
would like to make it keyboard friendly.
I have tried changing the ListStyle and every key combo I can think of.
I’m beginning to think it might not be possible. I need some help from
the experts.


--
Casey


------------------------------------------------------------------------
Casey's Profile: http://www.excelforum.com/member.php...fo&userid=4545
View this thread: http://www.excelforum.com/showthread...hreadid=533484

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Listbox Select items with Keyboard.

Casey wrote:
Hi,
I have a listbox whose RowSource is changed depending on which command
button is clicked. I have been able to transfer the focus from the
command button to the listbox as the command button is clicked,
however, I can't seem to find a way to select items from the listbox
using just the keyboard, selecting with the mouse works just fine but
I would like to make it keyboard friendly.
I have tried changing the ListStyle and every key combo I can think
of. I'm beginning to think it might not be possible. I need some help
from the experts.


Casey: I don't think you can do that. You can use the arrow keys and the
space bar to select items in the box. Also, check out

http://www.dailydoseofexcel.com/arch...mit-a-listbox/
http://www.dailydoseofexcel.com/arch...ifferent-view/

which provide a method to limit what is shown in the listbox.

--
Dick Kusleika
MS MVP - Excel
www.dailydoseofexcel.com


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Listbox Select items with Keyboard.


Dick,
Thank you. That was exactly what I was looking for, the keystrokes to
select items. The listbox works fine using the arrow keys and the
spacebar for selecting items from the list.
I think my question had a bit too much unneeded information. Thanks
again for the response and the two links for me to study.


--
Casey


------------------------------------------------------------------------
Casey's Profile: http://www.excelforum.com/member.php...fo&userid=4545
View this thread: http://www.excelforum.com/showthread...hreadid=533484

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
Select Multiple Items and return value for Dropdown or listbox kookie Excel Discussion (Misc queries) 4 January 19th 09 10:18 PM
Problem using INDEX to select items in listbox Shazbot Excel Discussion (Misc queries) 3 April 28th 06 09:06 AM
Select multiple items in a listbox uecem[_4_] Excel Programming 2 November 26th 04 02:00 AM
select mulitiple columns and items from a listbox TK Excel Programming 1 August 26th 04 05:15 AM
SELECT, ERASE, EDIT items in listbox unplugs[_29_] Excel Programming 10 June 30th 04 04:56 AM


All times are GMT +1. The time now is 01:36 PM.

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

About Us

"It's about Microsoft Excel"