open another workbook

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have workbook register.xls that looks up values from data.xls
so i need a startup macro that opens data.xls before register.xls

thanks in advance
 
if you have this for an open workbook
=VLOOKUP(A5,[yourworkbook.xls]yourworksheet!$A$5:$C$10,2,0)
when you close, excel will automatically change to
=VLOOKUP(A5,'C:\yourfolder\yourworkbook.xls]yourworksheet'!$A$5:$C$10,2,0)
Notice the addition of the path and the ' and the precise location.
 
is there a way around that. because i have the workbooks on 3 different
computers that lookup info from data.xls which is shared.
could i do a find replace when register.xls opens to replace c:\etc with
[data.xls]inventory!

Don Guillett said:
if you have this for an open workbook
=VLOOKUP(A5,[yourworkbook.xls]yourworksheet!$A$5:$C$10,2,0)
when you close, excel will automatically change to
=VLOOKUP(A5,'C:\yourfolder\yourworkbook.xls]yourworksheet'!$A$5:$C$10,2,0)
Notice the addition of the path and the ' and the precise location.

--
Don Guillett
SalesAid Software
(e-mail address removed)
choice said:
i have workbook register.xls that looks up values from data.xls
so i need a startup macro that opens data.xls before register.xls

thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top