ich versuche ein Powershell-Skript aus VBA aufzurufen, das im gleichen Ordner liegt wie die Excelmappe.
Alle meine Ansätze haben nicht geklappt, da der Call Shell-Befehl nicht kapiert, dass Pfad eine Variable ist...
Dim pathname As String
pathname = ActiveWorkbook.Path
Call Shell("powershell -noexit -file pathname &""/Namen.ps1""", 1)
Dim pathname As String
pathname = ActiveWorkbook.Path
Call Shell("powershell -noexit -file ""pathname/Namen.ps1""", 1)
Ich hoffe jemand von euch kann mir helfen!Viele Dank im voraus!
Gruß
Lukas