如何获取该文件的文件路径与磨合VBA code [英] How to get file path of the file with the running-vba code
本文介绍了如何获取该文件的文件路径与磨合VBA code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从谁运行vba- code中的文件的文件夹路径。 例如:vba- code是在文件C:\ MyFolder的\ file.accdb,我想vba- code返回C:\ MyFolder的\
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\
这可能吗?
推荐答案
您需要
currentproject.Path
这篇关于如何获取该文件的文件路径与磨合VBA code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文