Added data validation

This commit is contained in:
jhoneill
2019-01-21 14:20:57 +00:00
parent 7ded24d2f9
commit 89a8cb0469
9 changed files with 258 additions and 6 deletions

View File

@@ -926,7 +926,8 @@
}
if ($AutoSize) {
try {
$ws.Cells.AutoFitColumns()
#Don't fit the all the columns in the sheet; if we are adding cells beside things with hidden columns, that unhides them
$ws.Cells[($startAddress+':'+$endAddress)].AutoFitColumns()
Write-Verbose -Message "Auto-sized columns"
}
catch { Write-Warning -Message "Failed autosizing columns of worksheet '$WorksheetName': $_"}