Johan
Johan

Reputation: 19062

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

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?

Upvotes: 0

Views: 3396

Answers (1)

Fionnuala
Fionnuala

Reputation: 91316

You need

currentproject.Path

Upvotes: 2

Related Questions