Files
ImportExcel/Examples/ConditionalFormatting/CodeGenExamples.ps1
2016-01-25 14:20:30 -05:00

15 lines
381 B
PowerShell

echo Last7Days LastMonth LastWeek NextMonth NextWeek ThisMonth ThisWeek Today Tomorrow Yesterday |
% {
$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"
}