R
Robert Crandal
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!
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!