We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
For example,
function Test()
{
var oExec = WshShell.Exec("powershell.exe -Command \"C:\\Temp\\Book2.ps1\" -excelfile \"C:\\Temp\\Book2.xlsx\"");
while (oExec.Status == 0) {
aqUtils.Delay(1000);
}
while (!oExec.StdOut.AtEndOfStream) {
Log.Message(oExec.StdOut.ReadLine());
}
}
Thanks a lot this solves all my problems
Thank you once again for all the effort
Here's the PowerShell script code,
$excel = New-Object -ComObject Excel.Application
$workbook = $excel.Workbooks.Open('C:\Temp\Book2.xlsx')
$worksheet = $workbook.Worksheets('Sheet1')
Write-Host "Is column 3 hidden?" $worksheet.Columns.Item(3).Hidden
Write-Host "Is row 4 hidden?" $worksheet.Rows.Item(4).Hidden
Write-Host "Is freeze pane enabled?" $excel.ActiveWindow.FreezePanes
$excel.Quit()
[System.Runtime.InteropServices.Marshal]::ReleaseComObject($excel) | Out-NullWhich checks the Excel spreadsheet,