Made parameter names the same

This commit is contained in:
dfinke
2016-01-25 09:37:31 -05:00
parent 408824ee66
commit ff25cb45da
3 changed files with 12 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ ps | where Company | select Company, Name, PM, Handles, *mem* |
Export-Excel .\testExport.xlsx -Show -AutoSize -AutoNameRange `
-ConditionalFormat $(
New-ConditionalFormattingIconSet -Address "C:C" `
New-ConditionalFormattingIconSet -Range "C:C" `
-ConditionalFormat ThreeIconSet -IconType Arrows
) -ConditionalText $(

View File

@@ -71,7 +71,7 @@ function Export-Excel {
foreach($format in $ConditionalFormat ) {
$target = "Add$($format.Formatter)"
$rule = ($ws.ConditionalFormatting).$target($format.Address, $format.IconType)
$rule = ($ws.ConditionalFormatting).$target($format.Range, $format.IconType)
$rule.Reverse = $format.Reverse
}

View File

@@ -1,7 +1,7 @@
function New-ConditionalFormattingIconSet {
param(
[Parameter(Mandatory=$true)]
$Address,
$Range,
[ValidateSet("ThreeIconSet","FourIconSet","FiveIconSet")]
$ConditionalFormat,
[Switch]$Reverse
@@ -42,7 +42,7 @@ function New-ConditionalFormattingIconSet {
$bp = @{}+$PSBoundParameters
$obj = [PSCustomObject]@{
Address = $Address
Range = $Range
Formatter = $ConditionalFormat
IconType = $bp.IconType
Reverse = $Reverse