ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CurDir (https://www.excelbanter.com/excel-programming/318925-curdir.html)

vi_sh_wa

CurDir
 
CurDir does not return the present working directory of the
work book. How to get the present working directory of the
work sheet

Alan Perkins[_3_]

CurDir
 
Assuming that the code is in the workbook that you're trying to lodate, use
ThisWorkbook.Path.

HTH

Alan Perkins

"vi_sh_wa" wrote in message
...
CurDir does not return the present working directory of the
work book. How to get the present working directory of the
work sheet




Harald Staff

CurDir
 
The folder where the active workbook resides is
ActiveWorkbook.Path

HTH. Best wishes Harald

"vi_sh_wa" skrev i melding
...
CurDir does not return the present working directory of the
work book. How to get the present working directory of the
work sheet





All times are GMT +1. The time now is 08:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com