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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Adrcon3

New Member
Joined
Aug 29, 2006
Messages
31
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,070
Messages
5,857,166
Members
431,859
Latest member
charles__

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
Top