-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
There is no specific function for that. Need to know more about this. It may be workable from the object model itself. |
Beta Was this translation helpful? Give feedback.
-
Hi Doug, thanks for getting back to me. |
Beta Was this translation helpful? Give feedback.
-
arr got it $eFile = "$PSScriptroot\Test.XLSX" $ws = "sheet1" Write-Host "merged cells count: $c" Close-ExcelPackage $dTemp -NoSave |
Beta Was this translation helpful? Give feedback.
-
Thanks for posting and using ImportExcel. Curious how you use the count? |
Beta Was this translation helpful? Give feedback.
arr got it
$eFile = "$PSScriptroot\Test.XLSX"
$dTemp = Open-ExcelPackage $eFile
$ws = "sheet1"
$Sheet1 = $dTemp.Workbook.Worksheets["$ws"]
$c = $Sheet1.MergedCells.Count
Write-Host "merged cells count: $c"
Close-ExcelPackage $dTemp -NoSave