Relative instead of Absolute paths in Excel VBA

前端 未结 8 940
眼角桃花
眼角桃花 2020-12-05 04:10

I have written an Excel VBA macro which imports data from a HTML file (stored locally) before performing calculations on the data.

At the moment the HTML file is ref

8条回答
  •  既然无缘
    2020-12-05 04:34

    You could use one of these for the relative path root:

    ActiveWorkbook.Path
    ThisWorkbook.Path
    App.Path
    

提交回复
热议问题