I am trying to write a VBA to open up a file path to a direct folder. What is wrong with how I am doing it? Is this the right way to do it?
I have searched and used examples from here, but get an error (see below)
Sub OpenFolder()
Dim FolderPath As String
FolderPath = "C:\Users\myname\Desktop\AdaptiveThreatProtection\"
Call Shell("explorer.exe """ & FolderPath & "", vbNormalFocus)
End Sub