Open ActiveWorkBook folder
Sub OpenFolderofProject() Dim strMsg As String, strTitle As String Dim sFolder As String sFolder = ThisWorkbook.Path strMsg = "Open WorkBook Folder Location? " strTitle = "Folder Location:" & sFolder If MsgBox(strMsg, vbQuestion + vbYesNo, strTitle) = vbNo Then Else Call Shell("explorer.exe " & sFolder, vbNormalFocus) End If End Sub
Context: Usually, your changes in your project are constantly changing or you have an automatically created workbook with a dynamic name. No matter what happens. This will know the location of your path to the book and ask if you want to open this particular folder.
This was very useful for me when I dynamically saved a bunch of Excels programmatically in the same folder of a workbook. Because instead of closing / minimizing the workbook, go to Explorer. I could focus on the project and not lose my mind.
source share