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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,223,192
Messages
6,170,645
Members
452,344
Latest member
LarryRSch

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