Files
ImportExcel/Examples/ConditionalFormatting/CodeGenExamples.ps1
François-Xavier Cat 1951a61699 Expand a few aliases
2018-10-01 17:01:15 -07:00

15 lines
394 B
PowerShell

echo Last7Days LastMonth LastWeek NextMonth NextWeek ThisMonth ThisWeek Today Tomorrow Yesterday |
Foreach-Object {
$text = @"
`$f = ".\testExport.xlsx"
rm `$f -ErrorAction Ignore
.\GenDates.ps1 |
Export-Excel `$f -Show -AutoSize -ConditionalText `$(
New-ConditionalText -ConditionalType $_
)
"@
$text | Set-Content -Encoding Ascii "Highlight-$($_).ps1"
}