I apologize, I clicked on Submit Post by mistake...
Here is the table that I have in a sheet called Table:
[tt]A B C [/tt]
[tt] [/tt]
[tt]1 ABC_Company 12906[/tt]
[tt]2 Aldo 32600[/tt]
[tt]3 Bay 15637[/tt]
[tt]4 Bureau Engros 25900[/tt]
[tt]5 Garment_Plus 14568[/tt]
[tt]6 FutureShop 18906[/tt]
[tt]7 Staples 16788[/tt]
[tt]8 Zellers 09653[/tt]
I have the following named ranges defined:
cat => $B$1:$C$8
company => $B$1:$B$8
catlookup => $A$1:$C$8
On another sheet called UserInput, I have a control toolbox combo box with the ListFillRange property value defined as the 'company' named range. Thus, users are able to scroll through the company names in the combo box populated by the above table.
I also have one line of code associated to the combo box with the following:
Private Sub ComboBox1_Change()
Range("I6").Value = ComboBox1.Value
End Sub
In other words, I'm inserting the company name into cell I6.
Let's assume a user used the dropdown combo box to select FutureShop. I need assistance in also accomplishing the following:
1) Since FutureShop represents the 6th row, I also need to insert the row count into cell I4; i.e., I would like to see the value 6 in cell I4
2) Since FutureShop represents company code 18906, I also need to insert this value into cell I5.
The final results should appear as follows:
[tt] A B C D E F G H I[/tt]
[tt]4 6[/tt]
[tt]5 18906[/tt]
[tt]6 FutureShop[/tt]
How do I accomplish the above actions using the aforementioned combinations of named ranges?
I hope I am being clear.
Regards,
Shawn