LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Listbox problem

My spreadsheet contains data in 2 columns which looks
like this:

(A) (B)
--------------------------------
(row 1) Pears 0
(row 2) Oranges 10
(row 3) Apples 5
(row 4) Pumpkins 3
(row 5) Grapefruit 5
(row 6) Carrots 8
...
...
(row n) Plums 11

I want to run a macro which reads all the data from
column A (from row 1 to row "n") sorts the strings,
then displays the sorted strings in a listbox. So basically,
the user will see a sorted listbox of ONLY the fruits that occur
in column A.

If the user double clicks on a fruit item that is visible in
the listbox, I would like to display a second userform or
dialog box that shows the numeric quantity associated with
that fruit. This dialog box will let the user update or edit
the number quantity, which causes the data in column B
of the spreadsheet to be instantly updated.

Can anyone help me solve this problem?? I've tried several
approaches which have failed so far, so I'd like to hear some
new approaches that work.

Thank you!


 
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 problem apndas[_9_] Excel Programming 1 July 23rd 06 03:51 PM
listbox problem #2 Keith Excel Programming 4 April 12th 05 06:32 PM
listbox problem [email protected] Excel Programming 1 March 10th 05 01:08 PM
Listbox Problem [email protected] Excel Programming 4 August 19th 04 06:47 PM
ListBox problem Mike Fogleman Excel Programming 3 December 29th 03 12:23 PM


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