View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
cucchiaino cucchiaino is offline
external usenet poster
 
Posts: 28
Default Open File Location

properties wrote:
How can I rewrite this code to open a file named "invoice", in case I
move the workbook to another directory.

Workbooks.OpenText Filename:= _
"C:\Documents and Settings\Owner\My
Documents\\Project\Summary\Test_Macro\invoice"


Workbooks.OpenText Filename:= _
"C:\newdirectory\invoice"