How to get file path of the file with the running-vba code

痞子三分冷 提交于 2019-12-24 19:35:13

问题


I want to get the folder path from the file who is running the vba-code. For example: the vba-code is in the file C:\myfolder\file.accdb and I want the vba-code to return C:\myfolder\

Is that possible?


回答1:


You need

currentproject.Path


来源:https://stackoverflow.com/questions/1729752/how-to-get-file-path-of-the-file-with-the-running-vba-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!