Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default resetting combo box to top line

Hi,
We've got two combo boxes (off of the forms toolbar) that we keep in
sync, meaning changing the selection in the first one kicks off a
macro that applies a filter to a range, and copies the result to the
area that is used as the source for the second combo box. The input
range for the second combo box is fixed to about 100 rows.
Here's the issue. If, for example, the tenth row is selected in the
second combo box, and then a new selection is made in the first combo
box causing the second combo box to only have one or two items, it is
still positioned at the tenth "blank" row. The user has to know to
scroll up in the second combo box to get to the visible choices. Is
there any way to force the second combo box to the top of the list?
Thanks,
Scott
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default resetting combo box to top line

Hi,

At the end of the code setting the new data list in Combobox2, do
''' ... here, code filling up combobox2, then
Combobox2.ListIndex=0

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"scottgp" wrote:

Hi,
We've got two combo boxes (off of the forms toolbar) that we keep in
sync, meaning changing the selection in the first one kicks off a
macro that applies a filter to a range, and copies the result to the
area that is used as the source for the second combo box. The input
range for the second combo box is fixed to about 100 rows.
Here's the issue. If, for example, the tenth row is selected in the
second combo box, and then a new selection is made in the first combo
box causing the second combo box to only have one or two items, it is
still positioned at the tenth "blank" row. The user has to know to
scroll up in the second combo box to get to the visible choices. Is
there any way to force the second combo box to the top of the list?
Thanks,
Scott

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
Combo Gant and Line Chart ExcelMonkey Charts and Charting in Excel 4 March 9th 09 07:55 PM
Line/Bar combo chart: issues martinbarnes Excel Discussion (Misc queries) 1 March 11th 08 01:45 PM
How to change a bar to line in a combo chart? KimD Charts and Charting in Excel 2 August 10th 05 06:23 PM
Bar-Line Combo Chart mjamromi Charts and Charting in Excel 4 June 3rd 05 12:55 PM
Resetting Combo Boxes Stan Excel Programming 1 June 21st 04 01:32 PM


All times are GMT +1. The time now is 05:51 AM.

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"