Calling Excel macros from PowerShell with arguments

前端 未结 1 645
予麋鹿
予麋鹿 2020-12-01 07:20

Using Powershell it\'s rather easy to call Excel macro\'s from a script, for example with a script like this:

$excel = new-object -comobject excel.applicatio         


        
相关标签:
1条回答
  • 2020-12-01 07:47

    You can run a macro with arguments like this:

    $excel.Run('CreateChart', 'arg1', 'arg2', ...)
    
    0 讨论(0)
提交回复
热议问题