Calling Excel macros from PowerShell with arguments Calling Excel macros from PowerShell with arguments powershell powershell

Calling Excel macros from PowerShell with arguments


You can run a macro with arguments like this:

$excel.Run('CreateChart', 'arg1', 'arg2', ...)