Hi,
In my VB macro i declare this variable in my sub Export,
Path = ActiveDocument.Evaluate("left(DocumentPath(), index(DocumentPath(), '', -1))")
call openFolder(Path) 'I don't know how to pass the Path value to openFolder
function openFolder(ByVal Path)
Set WshShell = CreateObject("Wscript.Shell")
WSHShell.run Path
end function
i want to call a function which opens the folder in explorer of Path. is it possible to pass the value of Path to a function? I think it's something like the code above but it doesn't work... Some help would be handy 🙂