View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
sowetoddid[_2_] sowetoddid[_2_] is offline
external usenet poster
 
Posts: 1
Default Macro command to open a file

I would like to be able to specify a file name because it will always b
a different file being copied.

What about avoiding the Visual Basic approach to opening the file an
instead...

Assign each cell in Book1 a specific equation that pulls the data ou
of Book2. So, B1= Book2(A1)....B2=Book2(A2)


The only issue is how to change the name of Book2 to ensure that th
data is pulled from the correct file.

Anyone know how to make a macro so I can store the root file path i
the macro and simply type the file name ("Book2") into cell C1 an
click a Command Button that changes the equations in Book1. Th
equations would be changed to reference the appropriate file

--
Message posted from http://www.ExcelForum.com