updating cell with listbox

Adrcon3

New Member
Joined
Aug 29, 2006
Messages
31
Hi.
i have a list box "C4" (made from data>validation... option) which as a bunch of usernames. i also have another cell "F3" which has the following formula
=VLOOKUP(D11,INDIRECT("'C:\Documents and Settings\xp\Desktop\project\["&C4&".xls]Sheet1'!A1"),1,0)
in addition i have 2 excel files named "user1.xls" and user2.xls"

it works fine as it is. It retrives the cell A1 from which ever user is selected in the list box. The thing is that the file(user1.xls and user2.xls) needs to be opened so the cell F3 can retrive the inforamtion. Is there a way around this?
Thanks.

- i hope that made some sence :P

edit* just got an idea. i can set up a button which will open and retrive the information but i was wondering if this can be done when the user is selected from list. Again listbox is created from Data>Validation menu and not from any forms
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
umm what about if i use vba?
call sub when cell changes()
path = "C:\Documents and Settings\xp\Desktop\project\"
openfile = path & selectedcellname & ".xls"
activeworkbook.close
end sub

i need some help to translate this though :p
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top