hi,
i am trying to open a file in the same folder. i have tried the below code and it is not working for me.
i get runtime error 1004
method 'open' of object 'workbook' failed
i have tried several other things and none seem to work. i can get it to open but that is only if i hardcode the file path. the issue with that is the user can move the workbook and file that needs opening around so it needs to be dynamic.
also could use some help closing it once i extract the data i need.
Workbooks.Open Filename:=ThisWorkbook.Path & "\openthis.xls"
i need to complete this project soon.
please help!
THANK YOU!!
i am trying to open a file in the same folder. i have tried the below code and it is not working for me.
i get runtime error 1004
method 'open' of object 'workbook' failed
i have tried several other things and none seem to work. i can get it to open but that is only if i hardcode the file path. the issue with that is the user can move the workbook and file that needs opening around so it needs to be dynamic.
also could use some help closing it once i extract the data i need.
Workbooks.Open Filename:=ThisWorkbook.Path & "\openthis.xls"
i need to complete this project soon.
please help!
THANK YOU!!