View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Michael Turner Michael Turner is offline
external usenet poster
 
Posts: 3
Default How to open a workbook from a template without hardcoding the path

Hi

Thanks for the answer to my previous question but I left out a vital point
sorry.

Could anyone tell me how to open a workbook from a workbook template, where
both files are in the same folder, without hardcoding the path. I have tried
code like this without success.
Workbooks.open (Thisworkbook.path & "\somefile.xls")

This code works fine when opening a workbook from another workbook, but
not from a template.

Thanks in advance

Mick