Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Positioning the selected row in a listbox

Hi all! Excel 2003.

Here my trouble. I have a Listbox. I add it items and select the proper item
programatically. Unfortunately my selected row is always the last visible
row. I'd like that this selected row (it is the current date) be showed as
the second so I have yesterday as the first visible row and the day after
tomorrow as the third row.
Is there a way to get this?

Thank you in advance for any tips and suggestions.
Nicola M
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 320
Default Positioning the selected row in a listbox

Set the listindex to 1 to get the 2nd item (0 gets the first, -1 deselects
all, etc)

"Nicola M" wrote:

Hi all! Excel 2003.

Here my trouble. I have a Listbox. I add it items and select the proper item
programatically. Unfortunately my selected row is always the last visible
row. I'd like that this selected row (it is the current date) be showed as
the second so I have yesterday as the first visible row and the day after
tomorrow as the third row.
Is there a way to get this?

Thank you in advance for any tips and suggestions.
Nicola M

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
Positioning drop down box over listbox entry PatrickS Excel Programming 1 December 12th 08 04:07 PM
nothing selected in listbox, but listindex < -1 steve Excel Programming 2 March 8th 08 07:49 PM
Listbox none selected feature Mike Milligan Excel Programming 4 December 12th 06 10:32 PM
How to use selected items from Listbox [email protected] Excel Programming 4 April 7th 06 04:02 PM
How to add selected row into listbox? frankosun Excel Programming 1 December 17th 05 10:01 PM


All times are GMT +1. The time now is 11:40 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"