#Topic: Eksport variable from Excel
This line of code works:
How to get it dynamic to the current user like:
Do I need to build up the path part by part?
Like:
1 = C:\Users
2 = Application.UserName
3= \Documents\Script\BlueBeam\csvconverter.vbs
newpath = 1 & 2 & 3
I am not yet the most steady person in VBA.
Thx in advance guys!
This line of code works:
VBA Code:
Shell "wscript C:\Users\FR\Documents\Script\BlueBeam\csvconverter.vbs " & myPath & " ", vbNormalFocus
How to get it dynamic to the current user like:
VBA Code:
Shell "wscript C:\Users\%username%\Documents\Script\BlueBeam\csvconverter.vbs " & myPath & " ", vbNormalFocus
Do I need to build up the path part by part?
Like:
1 = C:\Users
2 = Application.UserName
3= \Documents\Script\BlueBeam\csvconverter.vbs
newpath = 1 & 2 & 3
I am not yet the most steady person in VBA.
Thx in advance guys!