mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-02-24 00:22:52 +00:00
Initial commit, date conditional formatting
This commit is contained in:
14
Examples/ConditionalFormatting/CodeGenExamples.ps1
Normal file
14
Examples/ConditionalFormatting/CodeGenExamples.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user