Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting Rows Programmatically

I wish to use a listbox or combo box to select rows on a
worksheet. In A1, B1, and C1 I would like the listbox or
combo box. If the user selects a value in the control in
A1, I want that selection to determine the rows selected
in column B. If the user selects a value in the control
in B1, I want that selection to determine the rows
selected in column C. Basically, I want to duplicate the
features of the AutoSelect feature in Excel. Can this be
done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Selecting Rows Programmatically

Use the click event for the combobox (control toolbox toolbar) or assign a
macro to the dropdown box (forms toolbar).

In the code, you would write the instructions to interpret the selection and
make the appropriate selection in the appropriate column.

Since you provide no information on what is in the dropdown list or what
type of control, it is hard to provide any meaningful sample code.

I did a search in Excel help on "autoselect" and came up with nothing - so
your reference to autoselect isn't illustrative either.

If you mean something like Ctrl+Shift+8, to select contiguous rows and
columns, then I see what the user would be selecting from the combobox - if
you just need to trigger the selection, you could put a button in those
locations.

Post back with more info, or maybe someone else will know exactly what you
are describing.

--
Regards,
Tom Ogilvy


"Aaron Lampkin" wrote in message
...
I wish to use a listbox or combo box to select rows on a
worksheet. In A1, B1, and C1 I would like the listbox or
combo box. If the user selects a value in the control in
A1, I want that selection to determine the rows selected
in column B. If the user selects a value in the control
in B1, I want that selection to determine the rows
selected in column C. Basically, I want to duplicate the
features of the AutoSelect feature in Excel. Can this be
done?



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
How can I delete rows programmatically based on certain criteria? nt_artagnian[_2_] New Users to Excel 2 March 8th 07 03:56 AM
How can I delete rows programmatically based on certain criteria? nt_artagnian[_2_] Excel Worksheet Functions 1 March 7th 07 05:48 PM
Selecting Embedded charts in Active Sheets programmatically Barb Reinhardt Charts and Charting in Excel 5 January 15th 06 02:36 PM
Deleting rows programmatically David Bateman Excel Worksheet Functions 1 March 6th 05 02:10 AM
Sorting rows programmatically Michael Monteiro Excel Programming 1 September 3rd 03 03:52 PM


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