Skip to content

Show Icon Only in New-ConditionalFormattingIconSet #1340

Answered by dfinke
normansolutions asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for posting. New-ConditionalFormattingIconSet does not have a -ShowValues option to turn that off.
Here is a way to get at that setting. The $excel.Sheet1.ConditionalFormatting is array, so you need to correctly identify the one or more you want to turn off.

It'd be easier if you could set this when you do the New. I need to think about that.

$data = ConvertFrom-Csv @"
Region,State,Units,Price,InStock
West,Texas,927,923.71,1
North,Tennessee,466,770.67,0
East,Florida,520,458.68,1
East,Maine,828,661.24,0
West,Virginia,465,053.58,1
North,Missouri,436,235.67,1
South,Kansas,214,992.47,1
North,North Dakota,789,640.72,0 
South,Delaware,712,508.55,1
"@

$xlfile = "$PSScriptRoot\test.xlsx"
R…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@normansolutions
Comment options

Comment options

You must be logged in to vote
1 reply
@normansolutions
Comment options

Answer selected by normansolutions
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants