changed: verboseoutlog to outlog (reducing runtime)
This commit is contained in:
parent
9acdffdbb8
commit
9e18f320cd
9 changed files with 434 additions and 437 deletions
|
|
@ -14,9 +14,9 @@ function TestExcel {
|
|||
$colCount = $workSheet.UsedRange.LastColumn
|
||||
|
||||
for ($i = 2; $i -le $rowCount; $i++) {
|
||||
outLogVerbose 'for ($i = 2; $i -le $rowCount; $i++) iteration:' $i
|
||||
outLog ('for ($i = 2; $i -le $rowCount; $i++) iteration: ' + $i)
|
||||
for ($j = 1; $j -le $colCount; $j++) {
|
||||
outLogVerbose 'for ($j = 1; $j -le $colCount; $j++) iteration:' $j
|
||||
### outLogVerbose 'for ($j = 1; $j -le $colCount; $j++) iteration:' $j
|
||||
$value = $workSheet.Range[$i, $j].DisplayText
|
||||
$newValue = $value -replace "`n", " --- " -replace "`r", " --- " -replace ";", "--" -replace "`"", "'"
|
||||
$workSheet.Range[$i, $j].Text = $newValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue