-1
excelのマクロを呼び出すためのPowerShellスクリプトが実行されていません。excelのマクロを呼び出すためのpowershellスクリプトが実行されていません
おかげで、よろしく、 ナッタンKadam
excelのマクロを呼び出すためのPowerShellスクリプトが実行されていません。excelのマクロを呼び出すためのpowershellスクリプトが実行されていません
おかげで、よろしく、 ナッタンKadam
Not clear how it is implemented with eye share . But the below code works for
macro calling ;
$excel = New-Object -comobject Excel.Application $wbPersonalXLSB = $excel.workbooks.open("$env:USERPROFILE\Application Data\Microsoft\Excel\XLSTART\PERSONAL.XLSB") $FilePath = $csvFile $workbook = $excel.Workbooks.Open($FilePath) $excel.Visible = $true $worksheet = $workbook.worksheets.item(1) $excel.Run("PERSONAL.XLSB!your_macro_name") $workbook.save() $workbook.close() $excel.quit()