diff --git a/Examples/Tables/SalesData-WithTotalRow.ps1 b/Examples/Tables/SalesData-WithTotalRow.ps1 index 24f18c0d..c7b7e0b8 100644 --- a/Examples/Tables/SalesData-WithTotalRow.ps1 +++ b/Examples/Tables/SalesData-WithTotalRow.ps1 @@ -17,12 +17,13 @@ OrderId,Category,Sales,Quantity,Discount $xlfile = "$PSScriptRoot\TotalsRow.xlsx" Remove-Item $xlfile -ErrorAction SilentlyContinue -$TotalSettings = @{ +$TableTotalSettings = @{ Quantity = 'Sum' - Category = @{ - # Count the number of categories not equal to Electronics - Custom = '=COUNTIF([Category],"<>Electronics")' + Category = '=COUNTIF([Category],"<>Electronics")' # Count the number of categories not equal to Electronics + Sales = @{ + Function = '=SUMIF([Category],"<>Electronics",[Sales])' + Comment = "Sum of sales for everything that is NOT Electronics" } } -$data | Export-Excel -Path $xlfile -TableName Sales -TableStyle Medium10 -TotalSettings $TotalSettings -AutoSize -Show \ No newline at end of file +$data | Export-Excel -Path $xlfile -TableName Sales -TableStyle Medium10 -TableTotalSettings $TableTotalSettings -AutoSize -Show \ No newline at end of file diff --git a/Examples/Tables/TotalsRow.ps1 b/Examples/Tables/TotalsRow.ps1 index 1580daec..bf8e5f74 100644 --- a/Examples/Tables/TotalsRow.ps1 +++ b/Examples/Tables/TotalsRow.ps1 @@ -3,13 +3,14 @@ try {Import-Module $PSScriptRoot\..\..\ImportExcel.psd1} catch {throw ; return} $r = Get-ChildItem C:\WINDOWS\system32 -File $TotalSettings = @{ - Length = "Sum" Name = "Count" - Extension = @{ - # You can create the formula in an Excel workbook first and copy-paste it here - # This syntax can only be used for the Custom type - Custom = "=COUNTIF([Extension];`".exe`")" + # You can create the formula in an Excel workbook first and copy-paste it here + # This syntax can only be used for the Custom type + Extension = "=COUNTIF([Extension];`".exe`")" + Length = @{ + Function = "=SUMIF([Extension];`".exe`";[Length])" + Comment = "Sum of all exe sizes" } } -$r | Export-Excel -TableName system32files -TableStyle Medium10 -TotalSettings $TotalSettings -Show \ No newline at end of file +$r | Export-Excel -TableName system32files -TableStyle Medium10 -TableTotalSettings $TotalSettings -Show \ No newline at end of file diff --git a/ImportExcel.psd1 b/ImportExcel.psd1 index 1cc336bf..d37aa3fe 100644 --- a/ImportExcel.psd1 +++ b/ImportExcel.psd1 @@ -88,6 +88,7 @@ Check out the How To Videos https://www.youtube.com/watch?v=U3Ne_yX4tYo&list=PL5 'Remove-Worksheet', 'Select-Worksheet', 'Send-SQLDataToExcel', + 'Set-CellComment', 'Set-CellStyle', 'Set-ExcelColumn', 'Set-ExcelRange', diff --git a/Public/Add-ExcelTable.ps1 b/Public/Add-ExcelTable.ps1 index 5a179a8d..232efaf6 100644 --- a/Public/Add-ExcelTable.ps1 +++ b/Public/Add-ExcelTable.ps1 @@ -9,7 +9,7 @@ function Add-ExcelTable { [Switch]$ShowHeader , [Switch]$ShowFilter, [Switch]$ShowTotal, - [hashtable]$TotalSettings, + [hashtable]$TableTotalSettings, [Switch]$ShowFirstColumn, [Switch]$ShowLastColumn, [Switch]$ShowRowStripes, @@ -51,16 +51,28 @@ function Add-ExcelTable { } #it seems that show total changes some of the others, so the sequence matters. if ($PSBoundParameters.ContainsKey('ShowHeader')) {$tbl.ShowHeader = [bool]$ShowHeader} - if ($PSBoundParameters.ContainsKey('TotalSettings')) { + if ($PSBoundParameters.ContainsKey('TableTotalSettings') -And $Null -ne $TableTotalSettings) { $tbl.ShowTotal = $true - foreach ($k in $TotalSettings.keys) { + foreach ($k in $TableTotalSettings.keys) { + + # Get the Function to be added in the totals row + if ($TableTotalSettings[$k] -is [HashTable]) { + If ($TableTotalSettings[$k].Keys -contains "Function") { + $TotalFunction = $TableTotalSettings[$k]["Function"] + } + Else { Write-Warning -Message "TableTotalSettings parameter for column '$k' needs a key 'Function'" } + } + else { + $TotalFunction = [String]($TableTotalSettings[$k]) + } + + # Add the totals row if (-not $tbl.Columns[$k]) {Write-Warning -Message "Table does not have a Column '$k'."} - elseif ($TotalSettings[$k] -is [HashTable] -and $TotalSettings[$k].Keys.Count -eq 1 -and $TotalSettings[$k].Keys[0] -eq "Custom") { - $formula = $TotalSettings[$k][($TotalSettings[$k].Keys[0])] | Select -First 1 + elseif ($TotalFunction -match "^=") { ### A function in Excel uses ";" between parameters but the OpenXML parameter separator is "," ### Only replace semicolon when it's NOT somewhere between quotes quotes. # Get all text between quotes - $QuoteMatches = [Regex]::Matches($formula,"`"[^`"]*`"|'[^']*'") + $QuoteMatches = [Regex]::Matches($TotalFunction,"`"[^`"]*`"|'[^']*'") # Create array with all indexes of characters between quotes (and the quotes themselves) $QuoteCharIndexes = $( Foreach ($QuoteMatch in $QuoteMatches) { @@ -69,21 +81,35 @@ function Add-ExcelTable { ) # Get all semicolons - $SemiColonMatches = [Regex]::Matches($formula, ";") + $SemiColonMatches = [Regex]::Matches($TotalFunction, ";") # Replace the semicolons of which the index is not in the list of quote-text indexes Foreach ($SemiColonMatch in $SemiColonMatches.Index) { If ($QuoteCharIndexes -notcontains $SemiColonMatch) { - $formula = $formula.remove($SemiColonMatch,1).Insert($SemiColonMatch,",") + $TotalFunction = $TotalFunction.remove($SemiColonMatch,1).Insert($SemiColonMatch,",") } } # Configure the formula. The TotalsRowFunction is automatically set to "Custom" when the TotalsRowFormula is set. - $tbl.Columns[$k].TotalsRowFormula = $formula + $tbl.Columns[$k].TotalsRowFormula = $TotalFunction + } + elseif ($TotalFunction -notin @("Average", "Count", "CountNums", "Max", "Min", "None", "StdDev", "Sum", "Var") ) { + Write-Warning -Message "'$($TotalFunction)' is not a valid total function." } - elseif ($TotalSettings[$k] -notin @("Average", "Count", "CountNums", "Max", "Min", "None", "StdDev", "Sum", "Var") ) { - Write-Warning -Message "'$($TotalSettings[$k])' is not a valid total function." + else {$tbl.Columns[$k].TotalsRowFunction = $TotalFunction} + + # Set comment on totals row + If ($TableTotalSettings[$k] -is [HashTable] -and $TableTotalSettings[$k].Keys -contains "Comment" -and ![String]::IsNullOrEmpty($TableTotalSettings[$k]["Comment"])) { + $ColumnLetter = [officeOpenXml.ExcelAddress]::GetAddressCol(($tbl.columns | ? { $_.name -eq $k }).Id, $False) + $CommentRange = "{0}{1}" -f $ColumnLetter, $tbl.Address.End.Row + + $CellCommentParams = @{ + Worksheet = $tbl.WorkSheet + Range = $CommentRange + Text = $TableTotalSettings[$k]["Comment"] + } + + Set-CellComment @CellCommentParams } - else {$tbl.Columns[$k].TotalsRowFunction = $TotalSettings[$k]} } } elseif ($PSBoundParameters.ContainsKey('ShowTotal')) {$tbl.ShowTotal = [bool]$ShowTotal} diff --git a/Public/Export-Excel.ps1 b/Public/Export-Excel.ps1 index c4d13cb3..1a11d464 100644 --- a/Public/Export-Excel.ps1 +++ b/Public/Export-Excel.ps1 @@ -56,7 +56,7 @@ [Alias('Table')] $TableName, [OfficeOpenXml.Table.TableStyles]$TableStyle = [OfficeOpenXml.Table.TableStyles]::Medium6, - [HashTable]$TotalSettings, + [HashTable]$TableTotalSettings, [Switch]$BarChart, [Switch]$PieChart, [Switch]$LineChart , @@ -212,12 +212,7 @@ $row ++ $null = $ws.Cells[$row, $StartColumn].LoadFromDataTable($InputObject, $false ) if ($TableName -or $PSBoundParameters.ContainsKey('TableStyle')) { - if ($PSBoundParameters.ContainsKey('TotalSettings')) { - Add-ExcelTable -Range $ws.Cells[$ws.Dimension] -TableName $TableName -TableStyle $TableStyle -TotalSettings $TotalSettings - } - Else { - Add-ExcelTable -Range $ws.Cells[$ws.Dimension] -TableName $TableName -TableStyle $TableStyle - } + Add-ExcelTable -Range $ws.Cells[$ws.Dimension] -TableName $TableName -TableStyle $TableStyle -TableTotalSettings $TableTotalSettings } } else { @@ -430,12 +425,7 @@ if ($null -ne $TableName -or $PSBoundParameters.ContainsKey('TableStyle')) { #Already inserted Excel table if input was a DataTable if ($InputObject -isnot [System.Data.DataTable]) { - if ($PSBoundParameters.ContainsKey('TotalSettings')) { - Add-ExcelTable -Range $ws.Cells[$dataRange] -TableName $TableName -TableStyle $TableStyle -TotalSettings $TotalSettings - } - else { - Add-ExcelTable -Range $ws.Cells[$dataRange] -TableName $TableName -TableStyle $TableStyle - } + Add-ExcelTable -Range $ws.Cells[$dataRange] -TableName $TableName -TableStyle $TableStyle -TableTotalSettings $TableTotalSettings } } elseif ($AutoFilter) { diff --git a/Public/Set-CellComment.ps1 b/Public/Set-CellComment.ps1 new file mode 100644 index 00000000..06ab5fba --- /dev/null +++ b/Public/Set-CellComment.ps1 @@ -0,0 +1,70 @@ +[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '', Scope='Function', Target='Set*', Justification='Does not change system state')] +param() + +function Set-CellComment { + [CmdletBinding(DefaultParameterSetName = "Range")] + param( + [Parameter(Mandatory = $True, ParameterSetName = "ColumnLetter")] + [Parameter(Mandatory = $True, ParameterSetName = "ColumnNumber")] + [Parameter(Mandatory = $False, ParameterSetName = "Range")] + [OfficeOpenXml.ExcelWorkSheet]$Worksheet, + + [Parameter(Mandatory = $True, ParameterSetName = "Range", ValueFromPipeline = $true,Position=0)] + [Alias("Address")] + $Range, + + [Parameter(Mandatory = $True, ParameterSetName = "ColumnLetter")] + [Parameter(Mandatory = $True, ParameterSetName = "ColumnNumber")] + [Int]$Row, + + [Parameter(Mandatory = $True, ParameterSetName = "ColumnLetter")] + [String]$ColumnLetter, + + [Parameter(Mandatory = $True, ParameterSetName = "ColumnNumber")] + [Int]$ColumnNumber, + + [Parameter(Mandatory = $True)] + [String]$Text + ) + + If ($PSCmdlet.ParameterSetName -eq "Range") { + Write-Verbose "Using 'Range' Parameter Set" + if ($Range -is [Array]) { + $null = $PSBoundParameters.Remove("Range") + $Range | Set-CellComment @PSBoundParameters + } + else { + #We should accept, a worksheet and a name of a range or a cell address; a table; the address of a table; a named range; a row, a column or .Cells[ ] + if ($Range -is [OfficeOpenXml.Table.ExcelTable]) {$Range = $Range.Address} + elseif ($Worksheet -and $Range -is [string]) { + # Convert range as string to OfficeOpenXml.ExcelAddress + $Range = [OfficeOpenXml.ExcelAddress]::new($Range) + } + elseif ($Range -is [string]) {Write-Warning -Message "The range parameter you have specified also needs a worksheet parameter." ;return} + #else we assume $Range is a OfficeOpenXml.ExcelAddress + } + } + ElseIf ($PSCmdlet.ParameterSetName -eq "ColumnNumber") { + $Range = [OfficeOpenXml.ExcelAddress]::new($Row, $ColumnNumber, $Row, $ColumnNumber) + } + ElseIf ($PSCmdlet.ParameterSetName -eq "ColumnLetter") { + $Range = [OfficeOpenXml.ExcelAddress]::new(("{0}{1}" -f $ColumnLetter,$Row)) + } + + If ($Range -isnot [Array]) { + Foreach ($c in $Worksheet.Cells[$Range]) { + write-verbose $c.address + Try { + If ($Null -eq $c.comment) { + [Void]$c.AddComment($Text, "ImportExcel") + } + Else { + $c.Comment.Text = $Text + $c.Comment.Author = "ImportExcel" + } + $c.Comment.AutoFit = $True + } + Catch { "Could not add comment to cell {0}: {1}" -f $c.Address, $_.ToString() } + } + } +} \ No newline at end of file diff --git a/__tests__/Export-Excel.Tests.ps1 b/__tests__/Export-Excel.Tests.ps1 index e1c8be19..a964cce2 100644 --- a/__tests__/Export-Excel.Tests.ps1 +++ b/__tests__/Export-Excel.Tests.ps1 @@ -692,15 +692,17 @@ Describe ExportExcel -Tag "ExportExcel" { $processes = Get-Process | Where-Object { $_.StartTime } | Select-Object -First 50 # Export as table with a totals row with a set of possibilities - $TotalSettings = @{ + $TableTotalSettings = @{ Id = "COUNT" WS = "SUM" Handles = "AVERAGE" - CPU = @{ - Custom = '=COUNTIF([CPU];"<1")' + CPU = '=COUNTIF([CPU];"<1")' + NPM = @{ + Function = '=SUMIF([Name];"=Chrome";[NPM])' + Comment = "Sum of Non-Paged Memory (NPM) for all chrome processes" } } - $Processes | Export-Excel $path -TableName "processes" -TotalSettings $TotalSettings + $Processes | Export-Excel $path -TableName "processes" -TableTotalSettings $TableTotalSettings $TotalRows = $Processes.count + 2 # Column header + Data (50 processes) + Totals row $Excel = Open-ExcelPackage -Path $path $ws = $Excel.Workbook.Worksheets[1] @@ -716,22 +718,30 @@ Describe ExportExcel -Tag "ExportExcel" { $WScolumn = $ws.Tables[0].Columns | Where-Object { $_.Name -eq "WS" } $HandlesColumn = $ws.Tables[0].Columns | Where-Object { $_.Name -eq "Handles" } $CPUColumn = $ws.Tables[0].Columns | Where-Object { $_.Name -eq "CPU" } + $NPMColumn = $ws.Tables[0].Columns | Where-Object { $_.Name -eq "NPM" } + # Testing column properties $IDcolumn | Select-Object -ExpandProperty TotalsRowFunction | Should -Be "Count" $WScolumn | Select-Object -ExpandProperty TotalsRowFunction | Should -Be "Sum" $HandlesColumn | Select-Object -ExpandProperty TotalsRowFunction | Should -Be "Average" $CPUColumn | Select-Object -ExpandProperty TotalsRowFunction | Should -Be "Custom" $CPUColumn | Select-Object -ExpandProperty TotalsRowFormula | Should -Be 'COUNTIF([CPU],"<1")' + $NPMColumn | Select-Object -ExpandProperty TotalsRowFunction | Should -Be "Custom" + $NPMColumn | Select-Object -ExpandProperty TotalsRowFormula | Should -Be 'SUMIF([Name],"=Chrome",[NPM])' + # Testing actual cell properties $CountAddress = "{0}{1}" -f (Get-ExcelColumnName -ColumnNumber $IDcolumn.Id).ColumnName, $TotalRows $SumAddress = "{0}{1}" -f (Get-ExcelColumnName -ColumnNumber $WScolumn.Id).ColumnName, $TotalRows $AverageAddress = "{0}{1}" -f (Get-ExcelColumnName -ColumnNumber $HandlesColumn.Id).ColumnName, $TotalRows $CustomAddress = "{0}{1}" -f (Get-ExcelColumnName -ColumnNumber $CPUColumn.Id).ColumnName, $TotalRows - - $ws.Cells[$CountAddress].Formula | Should -Be "SUBTOTAL(103,processes[Id])" - $ws.Cells[$SumAddress].Formula | Should -Be "SUBTOTAL(109,processes[Ws])" - $ws.Cells[$AverageAddress].Formula | Should -Be "SUBTOTAL(101,processes[Handles])" - $ws.Cells[$CustomAddress].Formula | Should -Be 'COUNTIF([CPU],"<1")' + $CustomCommentAddress = "{0}{1}" -f (Get-ExcelColumnName -ColumnNumber $NPMColumn.Id).ColumnName, $TotalRows + + $ws.Cells[$CountAddress].Formula | Should -Be "SUBTOTAL(103,processes[Id])" + $ws.Cells[$SumAddress].Formula | Should -Be "SUBTOTAL(109,processes[Ws])" + $ws.Cells[$AverageAddress].Formula | Should -Be "SUBTOTAL(101,processes[Handles])" + $ws.Cells[$CustomAddress].Formula | Should -Be 'COUNTIF([CPU],"<1")' + $ws.Cells[$CustomCommentAddress].Formula | Should -Be 'SUMIF([Name],"=Chrome",[NPM])' + $ws.Cells[$CustomCommentAddress].Comment.Text | Should -Not -BeNullOrEmpty } AfterEach { diff --git a/__tests__/Path.tests.ps1 b/__tests__/Path.tests.ps1 index 3cac0182..71838841 100644 --- a/__tests__/Path.tests.ps1 +++ b/__tests__/Path.tests.ps1 @@ -1,11 +1,12 @@ Describe "Test reading relative paths" { BeforeAll { $script:xlfileName = "TestR.xlsx" - @{data = 1 } | Export-Excel (Join-Path $PWD "TestR.xlsx") + If ([String]::IsNullOrEmpty($PWD)) { $PWD = $PSScriptRoot } + @{data = 1 } | Export-Excel (Join-Path $PWD "TestR.xlsx") } AfterAll { - Remove-Item (Join-Path $PWD "$($script:xlfileName)") + Remove-Item (Join-Path $PWD "$($script:xlfileName)") } It "Should read local file".PadRight(90) { diff --git a/__tests__/Set-CellComment.tests.ps1 b/__tests__/Set-CellComment.tests.ps1 new file mode 100644 index 00000000..c952eee8 --- /dev/null +++ b/__tests__/Set-CellComment.tests.ps1 @@ -0,0 +1,44 @@ +if (-not (Get-command Import-Excel -ErrorAction SilentlyContinue)) { + Import-Module $PSScriptRoot\..\ImportExcel.psd1 +} + +Describe "Test setting comment on cells in different ways" -Tag SetCellComment { + BeforeAll { + $data = ConvertFrom-Csv @" +OrderId,Category,Sales,Quantity,Discount +1,Cosmetics,744.01,07,0.7 +2,Grocery,349.13,25,0.3 +3,Apparels,535.11,88,0.2 +4,Electronics,524.69,60,0.1 +5,Electronics,439.10,41,0.0 +6,Apparels,56.84,54,0.8 +7,Electronics,326.66,97,0.7 +8,Cosmetics,17.25,74,0.6 +9,Grocery,199.96,39,0.4 +10,Grocery,731.77,20,0.3 +"@ + + $Excel = $data | Export-Excel -PassThru + $ws = $Excel.Workbook.Worksheets | Select-Object -First 1 + } + + AfterAll { + Close-ExcelPackage $Excel + } + + It "Should add comments to multiple cells".PadRight(87) { + Set-CellComment -Range "A1" -Worksheet $ws -Text "This was added with a single cell range" + Set-CellComment -Range "A2:C2" -Worksheet $ws -Text "This was added with a multiple cell range" + Set-CellComment -ColumnLetter A -Row 3 -Worksheet $ws -Text "This was added using a column letter and rownumber" + Set-CellComment -ColumnNumber 1 -Row 4 -Worksheet $ws -Text "This was added using a column number and row number" + + Set-CellComment -Range "B2" -Worksheet $ws -Text "This demonstrates an overwrite of a previously set comment" + + $ws.Cells["A1"].Comment.Text | Should -BeExactly "This was added with a single cell range" + $ws.Cells["A2"].Comment.Text | Should -BeExactly "This was added with a multiple cell range" + $ws.Cells["B2"].Comment.Text | Should -BeExactly "This demonstrates an overwrite of a previously set comment" + $ws.Cells["C2"].Comment.Text | Should -BeExactly "This was added with a multiple cell range" + $ws.Cells["A3"].Comment.Text | Should -BeExactly "This was added using a column letter and rownumber" + $ws.Cells["A4"].Comment.Text | Should -BeExactly "This was added using a column number and row number" + } +} \ No newline at end of file diff --git a/__tests__/Set-Row_Set-Column-SetFormat.tests.ps1 b/__tests__/Set-Row_Set-Column-SetFormat.tests.ps1 index 56bf571e..59c99089 100644 --- a/__tests__/Set-Row_Set-Column-SetFormat.tests.ps1 +++ b/__tests__/Set-Row_Set-Column-SetFormat.tests.ps1 @@ -132,6 +132,11 @@ Describe "Set-ExcelColumn, Set-ExcelRow and Set-ExcelRange" { 12011,Crowbar,7,23.48 "@ + # Pester errors for countries with ',' as decimal separator + Foreach ($datarow in $data) { + $datarow.Price = [decimal]($datarow.Price) + } + $DriverData = convertFrom-CSv @" Name,Wikipage,DateOfBirth Fernando Alonso,/wiki/Fernando_Alonso,1981-07-29 @@ -392,7 +397,7 @@ Describe "Table Formatting" { $excel = $data2 | Export-excel -path $path -WorksheetName Hardware -AutoNameRange -AutoSize -BoldTopRow -FreezeTopRow -PassThru $ws = $excel.Workbook.Worksheets[1] #test showfilter & TotalSettings - $Table = Add-ExcelTable -PassThru -Range $ws.Cells[$($ws.Dimension.address)] -TableStyle Light1 -TableName HardwareTable -TotalSettings @{"Total" = "Sum"} -ShowFirstColumn -ShowFilter:$false + $Table = Add-ExcelTable -PassThru -Range $ws.Cells[$($ws.Dimension.address)] -TableStyle Light1 -TableName HardwareTable -TableTotalSettings @{"Total" = "Sum"} -ShowFirstColumn -ShowFilter:$false #test expnading named number formats Set-ExcelColumn -Worksheet $ws -Column 4 -NumberFormat 'Currency' Set-ExcelColumn -Worksheet $ws -Column 5 -NumberFormat 'Currency' diff --git a/changelog.md b/changelog.md index d050b7ea..7ea009a2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,11 @@ # 7.8.3 -- Extended Export-Excel with parameter TotalSettings. [Thomas Hofkens](https://github.com/thkn-hofa/ImportExcel) +Thanks [Thomas Hofkens](https://github.com/thkn-hofa) + +- Extended Export-Excel with parameter TableTotalSettings +- New Feature: Set-CellComment +- Fix Pester error for countries with ',' as decimal separator +- Fix Pester error for Windows PowerShell 5.1 # 7.8.2 diff --git a/en/ImportExcel-help.xml b/en/ImportExcel-help.xml index ffe6617c..69440b84 100644 --- a/en/ImportExcel-help.xml +++ b/en/ImportExcel-help.xml @@ -14,16 +14,17 @@ * Mark cells with icons depending on their value * Show a databar whose length indicates the value or a two or three color scale where the color indicates the relative value * Change the color, font, or number format of cells which meet given criteria - Add-ConditionalFormatting allows these parameters to be set; for fine tuning of the rules, the -PassThru switch will return the rule so that you can modify things which are specific to that type of rule, example, the values which correspond to each icon in an Icon-Set. + + Add-ConditionalFormatting allows these parameters to be set; for fine tuning of the rules, the -PassThru switch will return the rule so that you can modify things which are specific to that type of rule, example, the values which correspond to each icon in an Icon-Set. Add-ConditionalFormatting Address - - A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] - + + A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] + Object Object @@ -33,9 +34,9 @@ RuleType - + A standard named-rule - Top / Bottom / Less than / Greater than / Contains etc. - + AboveAverage AboveOrEqualAverage @@ -93,9 +94,9 @@ ConditionValue - + A value for the condition (for example 2000 if the test is 'lessthan 2000'; Formulas should begin with "=" ) - + Object Object @@ -105,9 +106,9 @@ ConditionValue2 - + A second value for the conditions like "Between X and Y" - + Object Object @@ -117,9 +118,9 @@ WorkSheet - + The worksheet where the format is to be applied - + ExcelWorksheet ExcelWorksheet @@ -129,9 +130,9 @@ ForegroundColor - + Text color for matching objects - + Object Object @@ -141,9 +142,9 @@ Reverse - + Use the Icon-Set in reverse order, or reverse the orders of Two- & Three-Color Scales - + SwitchParameter @@ -152,9 +153,9 @@ BackgroundColor - + Background color for matching items - + Object Object @@ -164,9 +165,9 @@ BackgroundPattern - + Background pattern for matching items - + None Solid @@ -197,9 +198,9 @@ PatternColor - + Secondary color when a background pattern requires it - + Object Object @@ -209,9 +210,9 @@ NumberFormat - + Sets the numeric format for matching items - + Object Object @@ -221,9 +222,9 @@ Bold - + Put matching items in bold face - + SwitchParameter @@ -232,9 +233,9 @@ Italic - + Put matching items in italic - + SwitchParameter @@ -243,9 +244,9 @@ Underline - + Underline matching items - + SwitchParameter @@ -254,9 +255,9 @@ StrikeThru - + Strikethrough text of matching items - + SwitchParameter @@ -265,9 +266,9 @@ StopIfTrue - + Prevent the processing of subsequent rules - + SwitchParameter @@ -276,9 +277,9 @@ Priority - + Set the sequence for rule processing - + Int32 Int32 @@ -288,9 +289,9 @@ PassThru - + If specified pass the rule back to the caller to allow additional customization. - + SwitchParameter @@ -302,9 +303,9 @@ Add-ConditionalFormatting Address - - A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] - + + A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] + Object Object @@ -314,9 +315,9 @@ WorkSheet - + The worksheet where the format is to be applied - + ExcelWorksheet ExcelWorksheet @@ -326,9 +327,9 @@ DataBarColor - + Color for databar type charts - + Object Object @@ -338,9 +339,9 @@ Priority - + Set the sequence for rule processing - + Int32 Int32 @@ -350,9 +351,9 @@ PassThru - + If specified pass the rule back to the caller to allow additional customization. - + SwitchParameter @@ -364,9 +365,9 @@ Add-ConditionalFormatting Address - - A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] - + + A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] + Object Object @@ -376,9 +377,9 @@ WorkSheet - + The worksheet where the format is to be applied - + ExcelWorksheet ExcelWorksheet @@ -388,9 +389,9 @@ ThreeIconsSet - + One of the three-icon set types (e.g. Traffic Lights) - + Arrows ArrowsGray @@ -410,9 +411,9 @@ Reverse - + Use the Icon-Set in reverse order, or reverse the orders of Two- & Three-Color Scales - + SwitchParameter @@ -421,9 +422,9 @@ Priority - + Set the sequence for rule processing - + Int32 Int32 @@ -433,9 +434,9 @@ PassThru - + If specified pass the rule back to the caller to allow additional customization. - + SwitchParameter @@ -447,9 +448,9 @@ Add-ConditionalFormatting Address - - A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] - + + A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] + Object Object @@ -459,9 +460,9 @@ WorkSheet - + The worksheet where the format is to be applied - + ExcelWorksheet ExcelWorksheet @@ -471,9 +472,9 @@ FourIconsSet - + A four-icon set name - + Arrows ArrowsGray @@ -490,9 +491,9 @@ Reverse - + Use the Icon-Set in reverse order, or reverse the orders of Two- & Three-Color Scales - + SwitchParameter @@ -501,9 +502,9 @@ Priority - + Set the sequence for rule processing - + Int32 Int32 @@ -513,9 +514,9 @@ PassThru - + If specified pass the rule back to the caller to allow additional customization. - + SwitchParameter @@ -527,9 +528,9 @@ Add-ConditionalFormatting Address - - A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] - + + A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] + Object Object @@ -539,9 +540,9 @@ WorkSheet - + The worksheet where the format is to be applied - + ExcelWorksheet ExcelWorksheet @@ -551,9 +552,9 @@ FiveIconsSet - + A five-icon set name - + Arrows ArrowsGray @@ -569,9 +570,9 @@ Reverse - + Use the Icon-Set in reverse order, or reverse the orders of Two- & Three-Color Scales - + SwitchParameter @@ -580,9 +581,9 @@ Priority - + Set the sequence for rule processing - + Int32 Int32 @@ -592,9 +593,9 @@ PassThru - + If specified pass the rule back to the caller to allow additional customization. - + SwitchParameter @@ -606,9 +607,9 @@ Address - - A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] - + + A block of cells to format - you can use a named range with -Address $ws.names[1] or $ws.cells["RangeName"] + Object Object @@ -618,9 +619,9 @@ WorkSheet - + The worksheet where the format is to be applied - + ExcelWorksheet ExcelWorksheet @@ -630,9 +631,9 @@ RuleType - + A standard named-rule - Top / Bottom / Less than / Greater than / Contains etc. - + eExcelConditionalFormattingRuleType eExcelConditionalFormattingRuleType @@ -642,9 +643,9 @@ ForegroundColor - + Text color for matching objects - + Object Object @@ -654,9 +655,9 @@ DataBarColor - + Color for databar type charts - + Object Object @@ -666,9 +667,9 @@ ThreeIconsSet - + One of the three-icon set types (e.g. Traffic Lights) - + eExcelconditionalFormatting3IconsSetType eExcelconditionalFormatting3IconsSetType @@ -678,9 +679,9 @@ FourIconsSet - + A four-icon set name - + eExcelconditionalFormatting4IconsSetType eExcelconditionalFormatting4IconsSetType @@ -690,9 +691,9 @@ FiveIconsSet - + A five-icon set name - + eExcelconditionalFormatting5IconsSetType eExcelconditionalFormatting5IconsSetType @@ -702,9 +703,9 @@ Reverse - + Use the Icon-Set in reverse order, or reverse the orders of Two- & Three-Color Scales - + SwitchParameter SwitchParameter @@ -714,9 +715,9 @@ ConditionValue - + A value for the condition (for example 2000 if the test is 'lessthan 2000'; Formulas should begin with "=" ) - + Object Object @@ -726,9 +727,9 @@ ConditionValue2 - + A second value for the conditions like "Between X and Y" - + Object Object @@ -738,9 +739,9 @@ BackgroundColor - + Background color for matching items - + Object Object @@ -750,9 +751,9 @@ BackgroundPattern - + Background pattern for matching items - + ExcelFillStyle ExcelFillStyle @@ -762,9 +763,9 @@ PatternColor - + Secondary color when a background pattern requires it - + Object Object @@ -774,9 +775,9 @@ NumberFormat - + Sets the numeric format for matching items - + Object Object @@ -786,9 +787,9 @@ Bold - + Put matching items in bold face - + SwitchParameter SwitchParameter @@ -798,9 +799,9 @@ Italic - + Put matching items in italic - + SwitchParameter SwitchParameter @@ -810,9 +811,9 @@ Underline - + Underline matching items - + SwitchParameter SwitchParameter @@ -822,9 +823,9 @@ StrikeThru - + Strikethrough text of matching items - + SwitchParameter SwitchParameter @@ -834,9 +835,9 @@ StopIfTrue - + Prevent the processing of subsequent rules - + SwitchParameter SwitchParameter @@ -846,9 +847,9 @@ Priority - + Set the sequence for rule processing - + Int32 Int32 @@ -858,9 +859,9 @@ PassThru - + If specified pass the rule back to the caller to allow additional customization. - + SwitchParameter SwitchParameter @@ -948,7 +949,12 @@ - + + + Online Version: + + + @@ -969,9 +975,9 @@ Add-ExcelChart Worksheet - + An existing Sheet where the chart will be created. - + ExcelWorksheet ExcelWorksheet @@ -981,9 +987,9 @@ Title - + The title for the chart. - + String String @@ -993,9 +999,9 @@ ChartType - + One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked". - + Area Line @@ -1080,9 +1086,9 @@ ChartTrendLine - - {{ Fill ChartTrendLine Description }} - + + + Exponential Linear @@ -1100,9 +1106,9 @@ XRange - + The range of cells containing values for the X-Axis - usually labels. - + Object Object @@ -1112,9 +1118,9 @@ YRange - + The range(s) of cells holding values for the Y-Axis - usually "data". - + Object Object @@ -1124,9 +1130,9 @@ Width - + Width of the chart in Pixels; defaults to 500. - + Int32 Int32 @@ -1136,9 +1142,9 @@ Height - + Height of the chart in Pixels; defaults to 350. - + Int32 Int32 @@ -1148,9 +1154,9 @@ Row - + Row position of the top left corner of the chart. ) places at the top of the sheet, 1 below row 1 and so on. - + Int32 Int32 @@ -1160,9 +1166,9 @@ RowOffSetPixels - - Offset to position the chart by a fraction of a row. - + + Offset to position the chart by a fraction of a row. + Int32 Int32 @@ -1172,9 +1178,9 @@ Column - + Column position of the top left corner of the chart; 0 places at the edge of the sheet 1 to the right of column A and so on. - + Int32 Int32 @@ -1184,9 +1190,9 @@ ColumnOffSetPixels - + Offset to position the chart by a fraction of a column. - + Int32 Int32 @@ -1196,9 +1202,9 @@ LegendPosition - + Location of the key, either left, right, top, bottom or TopRight. - + Top Left @@ -1215,9 +1221,9 @@ LegendSize - + Font size for the key. - + Object Object @@ -1227,9 +1233,9 @@ LegendBold - + Sets the key in bold type. - + SwitchParameter @@ -1238,9 +1244,9 @@ NoLegend - + If specified, turns of display of the key. If you only have one data series it may be preferable to use the title to say what the chart is. - + SwitchParameter @@ -1249,9 +1255,9 @@ ShowCategory - + Attaches a category label, in charts which support this. - + SwitchParameter @@ -1260,9 +1266,9 @@ ShowPercent - + Attaches a percentage label, in charts which support this. - + SwitchParameter @@ -1271,9 +1277,9 @@ SeriesHeader - + Specify explicit name(s) for the data series, which will appear in the legend/key. The contents of a cell can be specified in the from =Sheet9!Z10 . - + String[] String[] @@ -1283,9 +1289,9 @@ TitleBold - + Sets the title in bold face. - + SwitchParameter @@ -1294,9 +1300,9 @@ TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -1306,9 +1312,9 @@ XAxisTitleText - + Specifies a title for the X-axis. - + String String @@ -1318,9 +1324,9 @@ XAxisTitleBold - + Sets the X-axis title in bold face. - + SwitchParameter @@ -1329,9 +1335,9 @@ XAxisTitleSize - + Sets the font size for the axis title. - + Object Object @@ -1341,9 +1347,9 @@ XAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers along the X-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers along the X-axis. + String String @@ -1353,9 +1359,9 @@ XMajorUnit - + Spacing for the major gridlines / tick marks along the X-axis. - + Object Object @@ -1365,9 +1371,9 @@ XMinorUnit - + Spacing for the minor gridlines / tick marks along the X-axis. - + Object Object @@ -1377,9 +1383,9 @@ XMaxValue - + Maximum value for the scale along the X-axis. - + Object Object @@ -1389,9 +1395,9 @@ XMinValue - + Minimum value for the scale along the X-axis. - + Object Object @@ -1401,9 +1407,9 @@ XAxisPosition - + Position for the X-axis (Top or Bottom). - + Left Bottom @@ -1419,9 +1425,9 @@ YAxisTitleText - + Specifies a title for the Y-axis. - + String String @@ -1431,9 +1437,9 @@ YAxisTitleBold - + Sets the Y-axis title in bold face. - + SwitchParameter @@ -1442,9 +1448,9 @@ YAxisTitleSize - + Sets the font size for the Y-axis title - + Object Object @@ -1454,9 +1460,9 @@ YAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers on the Y-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers on the Y-axis. + String String @@ -1466,9 +1472,9 @@ YMajorUnit - + Spacing for the major gridlines / tick marks on the Y-axis. - + Object Object @@ -1478,9 +1484,9 @@ YMinorUnit - + Spacing for the minor gridlines / tick marks on the Y-axis. - + Object Object @@ -1490,9 +1496,9 @@ YMaxValue - + Maximum value on the Y-axis. - + Object Object @@ -1502,9 +1508,9 @@ YMinValue - + Minimum value on the Y-axis. - + Object Object @@ -1514,9 +1520,9 @@ YAxisPosition - + Position for the Y-axis (Left or Right). - + Left Bottom @@ -1532,9 +1538,9 @@ PassThru - + Add-Excel chart doesn't normally return anything, but if -PassThru is specified it returns the newly created chart to allow it to be fine tuned. - + SwitchParameter @@ -1546,9 +1552,9 @@ Add-ExcelChart PivotTable - + Instead of specify X and Y ranges, get data from a PivotTable by passing a PivotTable Object. - + ExcelPivotTable ExcelPivotTable @@ -1558,9 +1564,9 @@ Title - + The title for the chart. - + String String @@ -1570,9 +1576,9 @@ ChartType - + One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked". - + Area Line @@ -1657,9 +1663,9 @@ ChartTrendLine - - {{ Fill ChartTrendLine Description }} - + + + Exponential Linear @@ -1677,9 +1683,9 @@ XRange - + The range of cells containing values for the X-Axis - usually labels. - + Object Object @@ -1689,9 +1695,9 @@ YRange - + The range(s) of cells holding values for the Y-Axis - usually "data". - + Object Object @@ -1701,9 +1707,9 @@ Width - + Width of the chart in Pixels; defaults to 500. - + Int32 Int32 @@ -1713,9 +1719,9 @@ Height - + Height of the chart in Pixels; defaults to 350. - + Int32 Int32 @@ -1725,9 +1731,9 @@ Row - + Row position of the top left corner of the chart. ) places at the top of the sheet, 1 below row 1 and so on. - + Int32 Int32 @@ -1737,9 +1743,9 @@ RowOffSetPixels - - Offset to position the chart by a fraction of a row. - + + Offset to position the chart by a fraction of a row. + Int32 Int32 @@ -1749,9 +1755,9 @@ Column - + Column position of the top left corner of the chart; 0 places at the edge of the sheet 1 to the right of column A and so on. - + Int32 Int32 @@ -1761,9 +1767,9 @@ ColumnOffSetPixels - + Offset to position the chart by a fraction of a column. - + Int32 Int32 @@ -1773,9 +1779,9 @@ LegendPosition - + Location of the key, either left, right, top, bottom or TopRight. - + Top Left @@ -1792,9 +1798,9 @@ LegendSize - + Font size for the key. - + Object Object @@ -1804,9 +1810,9 @@ LegendBold - + Sets the key in bold type. - + SwitchParameter @@ -1815,9 +1821,9 @@ NoLegend - + If specified, turns of display of the key. If you only have one data series it may be preferable to use the title to say what the chart is. - + SwitchParameter @@ -1826,9 +1832,9 @@ ShowCategory - + Attaches a category label, in charts which support this. - + SwitchParameter @@ -1837,9 +1843,9 @@ ShowPercent - + Attaches a percentage label, in charts which support this. - + SwitchParameter @@ -1848,9 +1854,9 @@ SeriesHeader - + Specify explicit name(s) for the data series, which will appear in the legend/key. The contents of a cell can be specified in the from =Sheet9!Z10 . - + String[] String[] @@ -1860,9 +1866,9 @@ TitleBold - + Sets the title in bold face. - + SwitchParameter @@ -1871,9 +1877,9 @@ TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -1883,9 +1889,9 @@ XAxisTitleText - + Specifies a title for the X-axis. - + String String @@ -1895,9 +1901,9 @@ XAxisTitleBold - + Sets the X-axis title in bold face. - + SwitchParameter @@ -1906,9 +1912,9 @@ XAxisTitleSize - + Sets the font size for the axis title. - + Object Object @@ -1918,9 +1924,9 @@ XAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers along the X-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers along the X-axis. + String String @@ -1930,9 +1936,9 @@ XMajorUnit - + Spacing for the major gridlines / tick marks along the X-axis. - + Object Object @@ -1942,9 +1948,9 @@ XMinorUnit - + Spacing for the minor gridlines / tick marks along the X-axis. - + Object Object @@ -1954,9 +1960,9 @@ XMaxValue - + Maximum value for the scale along the X-axis. - + Object Object @@ -1966,9 +1972,9 @@ XMinValue - + Minimum value for the scale along the X-axis. - + Object Object @@ -1978,9 +1984,9 @@ XAxisPosition - + Position for the X-axis (Top or Bottom). - + Left Bottom @@ -1996,9 +2002,9 @@ YAxisTitleText - + Specifies a title for the Y-axis. - + String String @@ -2008,9 +2014,9 @@ YAxisTitleBold - + Sets the Y-axis title in bold face. - + SwitchParameter @@ -2019,9 +2025,9 @@ YAxisTitleSize - + Sets the font size for the Y-axis title - + Object Object @@ -2031,9 +2037,9 @@ YAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers on the Y-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers on the Y-axis. + String String @@ -2043,9 +2049,9 @@ YMajorUnit - + Spacing for the major gridlines / tick marks on the Y-axis. - + Object Object @@ -2055,9 +2061,9 @@ YMinorUnit - + Spacing for the minor gridlines / tick marks on the Y-axis. - + Object Object @@ -2067,9 +2073,9 @@ YMaxValue - + Maximum value on the Y-axis. - + Object Object @@ -2079,9 +2085,9 @@ YMinValue - + Minimum value on the Y-axis. - + Object Object @@ -2091,9 +2097,9 @@ YAxisPosition - + Position for the Y-axis (Left or Right). - + Left Bottom @@ -2109,9 +2115,9 @@ PassThru - + Add-Excel chart doesn't normally return anything, but if -PassThru is specified it returns the newly created chart to allow it to be fine tuned. - + SwitchParameter @@ -2123,9 +2129,9 @@ Worksheet - + An existing Sheet where the chart will be created. - + ExcelWorksheet ExcelWorksheet @@ -2135,9 +2141,9 @@ PivotTable - + Instead of specify X and Y ranges, get data from a PivotTable by passing a PivotTable Object. - + ExcelPivotTable ExcelPivotTable @@ -2147,9 +2153,9 @@ Title - + The title for the chart. - + String String @@ -2159,9 +2165,9 @@ ChartType - + One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked". - + eChartType eChartType @@ -2171,9 +2177,9 @@ ChartTrendLine - - {{ Fill ChartTrendLine Description }} - + + + eTrendLine[] eTrendLine[] @@ -2183,9 +2189,9 @@ XRange - + The range of cells containing values for the X-Axis - usually labels. - + Object Object @@ -2195,9 +2201,9 @@ YRange - + The range(s) of cells holding values for the Y-Axis - usually "data". - + Object Object @@ -2207,9 +2213,9 @@ Width - + Width of the chart in Pixels; defaults to 500. - + Int32 Int32 @@ -2219,9 +2225,9 @@ Height - + Height of the chart in Pixels; defaults to 350. - + Int32 Int32 @@ -2231,9 +2237,9 @@ Row - + Row position of the top left corner of the chart. ) places at the top of the sheet, 1 below row 1 and so on. - + Int32 Int32 @@ -2243,9 +2249,9 @@ RowOffSetPixels - - Offset to position the chart by a fraction of a row. - + + Offset to position the chart by a fraction of a row. + Int32 Int32 @@ -2255,9 +2261,9 @@ Column - + Column position of the top left corner of the chart; 0 places at the edge of the sheet 1 to the right of column A and so on. - + Int32 Int32 @@ -2267,9 +2273,9 @@ ColumnOffSetPixels - + Offset to position the chart by a fraction of a column. - + Int32 Int32 @@ -2279,9 +2285,9 @@ LegendPosition - + Location of the key, either left, right, top, bottom or TopRight. - + eLegendPosition eLegendPosition @@ -2291,9 +2297,9 @@ LegendSize - + Font size for the key. - + Object Object @@ -2303,9 +2309,9 @@ LegendBold - + Sets the key in bold type. - + SwitchParameter SwitchParameter @@ -2315,9 +2321,9 @@ NoLegend - + If specified, turns of display of the key. If you only have one data series it may be preferable to use the title to say what the chart is. - + SwitchParameter SwitchParameter @@ -2327,9 +2333,9 @@ ShowCategory - + Attaches a category label, in charts which support this. - + SwitchParameter SwitchParameter @@ -2339,9 +2345,9 @@ ShowPercent - + Attaches a percentage label, in charts which support this. - + SwitchParameter SwitchParameter @@ -2351,9 +2357,9 @@ SeriesHeader - + Specify explicit name(s) for the data series, which will appear in the legend/key. The contents of a cell can be specified in the from =Sheet9!Z10 . - + String[] String[] @@ -2363,9 +2369,9 @@ TitleBold - + Sets the title in bold face. - + SwitchParameter SwitchParameter @@ -2375,9 +2381,9 @@ TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -2387,9 +2393,9 @@ XAxisTitleText - + Specifies a title for the X-axis. - + String String @@ -2399,9 +2405,9 @@ XAxisTitleBold - + Sets the X-axis title in bold face. - + SwitchParameter SwitchParameter @@ -2411,9 +2417,9 @@ XAxisTitleSize - + Sets the font size for the axis title. - + Object Object @@ -2423,9 +2429,9 @@ XAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers along the X-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers along the X-axis. + String String @@ -2435,9 +2441,9 @@ XMajorUnit - + Spacing for the major gridlines / tick marks along the X-axis. - + Object Object @@ -2447,9 +2453,9 @@ XMinorUnit - + Spacing for the minor gridlines / tick marks along the X-axis. - + Object Object @@ -2459,9 +2465,9 @@ XMaxValue - + Maximum value for the scale along the X-axis. - + Object Object @@ -2471,9 +2477,9 @@ XMinValue - + Minimum value for the scale along the X-axis. - + Object Object @@ -2483,9 +2489,9 @@ XAxisPosition - + Position for the X-axis (Top or Bottom). - + eAxisPosition eAxisPosition @@ -2495,9 +2501,9 @@ YAxisTitleText - + Specifies a title for the Y-axis. - + String String @@ -2507,9 +2513,9 @@ YAxisTitleBold - + Sets the Y-axis title in bold face. - + SwitchParameter SwitchParameter @@ -2519,9 +2525,9 @@ YAxisTitleSize - + Sets the font size for the Y-axis title - + Object Object @@ -2531,9 +2537,9 @@ YAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers on the Y-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers on the Y-axis. + String String @@ -2543,9 +2549,9 @@ YMajorUnit - + Spacing for the major gridlines / tick marks on the Y-axis. - + Object Object @@ -2555,9 +2561,9 @@ YMinorUnit - + Spacing for the minor gridlines / tick marks on the Y-axis. - + Object Object @@ -2567,9 +2573,9 @@ YMaxValue - + Maximum value on the Y-axis. - + Object Object @@ -2579,9 +2585,9 @@ YMinValue - + Minimum value on the Y-axis. - + Object Object @@ -2591,9 +2597,9 @@ YAxisPosition - + Position for the Y-axis (Left or Right). - + eAxisPosition eAxisPosition @@ -2603,9 +2609,9 @@ PassThru - + Add-Excel chart doesn't normally return anything, but if -PassThru is specified it returns the newly created chart to allow it to be fine tuned. - + SwitchParameter SwitchParameter @@ -2688,7 +2694,12 @@ Close-ExcelPackage $Excel -Show - + + + Online Version: + + + @@ -2707,9 +2718,9 @@ Close-ExcelPackage $Excel -Show Add-ExcelDataValidationRule Range - + The range of cells to be validate, for example, "B2:C100" - + Object Object @@ -2719,9 +2730,9 @@ Close-ExcelPackage $Excel -Show WorkSheet - + The worksheet where the cells should be validated - + ExcelWorksheet ExcelWorksheet @@ -2731,9 +2742,9 @@ Close-ExcelPackage $Excel -Show ValidationType - + An option corresponding to a choice from the 'Allow' pull down on the settings page in the Excel dialog. "Any" means "any allowed" - in other words, no Validation - + Object Object @@ -2743,9 +2754,9 @@ Close-ExcelPackage $Excel -Show Operator - + The operator to apply to Decimal, Integer, TextLength, DateTime and time fields, for example "equal" or "between" - + between notBetween @@ -2765,9 +2776,9 @@ Close-ExcelPackage $Excel -Show Value - + For Decimal, Integer, TextLength, DateTime the [first] data value - + Object Object @@ -2777,9 +2788,9 @@ Close-ExcelPackage $Excel -Show Value2 - - When using the between operator, the second data value - + + When using the between operator, the second data value + Object Object @@ -2789,9 +2800,9 @@ Close-ExcelPackage $Excel -Show Formula - + The [first] data value as a formula. Use absolute formulas $A$1 if (e.g.) you want all cells to check against the same list - + Object Object @@ -2801,9 +2812,9 @@ Close-ExcelPackage $Excel -Show Formula2 - + When using the between operator, the second data value as a formula - + Object Object @@ -2813,9 +2824,9 @@ Close-ExcelPackage $Excel -Show ValueSet - + When using the list validation type, a set of values (rather than refering to Sheet!B$2:B$100 ) - + Object Object @@ -2825,9 +2836,9 @@ Close-ExcelPackage $Excel -Show ShowErrorMessage - + Corresponds to the the 'Show Error alert ...' check box on error alert page in the Excel dialog - + SwitchParameter @@ -2836,9 +2847,9 @@ Close-ExcelPackage $Excel -Show ErrorStyle - + Stop, Warning, or Infomation, corresponding to to the style setting in the Excel dialog - + undefined stop @@ -2854,9 +2865,9 @@ Close-ExcelPackage $Excel -Show ErrorTitle - - The title for the message box corresponding to to the title setting in the Excel dialog - + + The title for the message box corresponding to to the title setting in the Excel dialog + String String @@ -2866,9 +2877,9 @@ Close-ExcelPackage $Excel -Show ErrorBody - + The error message corresponding to to the Error message setting in the Excel dialog - + String String @@ -2878,9 +2889,9 @@ Close-ExcelPackage $Excel -Show ShowPromptMessage - - Corresponds to the the 'Show Input message ...' check box on input message page in the Excel dialog - + + Corresponds to the the 'Show Input message ...' check box on input message page in the Excel dialog + SwitchParameter @@ -2889,9 +2900,9 @@ Close-ExcelPackage $Excel -Show PromptBody - + The prompt message corresponding to to the Input message setting in the Excel dialog - + String String @@ -2901,9 +2912,9 @@ Close-ExcelPackage $Excel -Show PromptTitle - - The title for the message box corresponding to to the title setting in the Excel dialog - + + The title for the message box corresponding to to the title setting in the Excel dialog + String String @@ -2913,9 +2924,9 @@ Close-ExcelPackage $Excel -Show NoBlank - + By default the 'Ignore blank' option will be selected, unless NoBlank is sepcified. - + String String @@ -2928,9 +2939,9 @@ Close-ExcelPackage $Excel -Show Range - + The range of cells to be validate, for example, "B2:C100" - + Object Object @@ -2940,9 +2951,9 @@ Close-ExcelPackage $Excel -Show WorkSheet - + The worksheet where the cells should be validated - + ExcelWorksheet ExcelWorksheet @@ -2952,9 +2963,9 @@ Close-ExcelPackage $Excel -Show ValidationType - + An option corresponding to a choice from the 'Allow' pull down on the settings page in the Excel dialog. "Any" means "any allowed" - in other words, no Validation - + Object Object @@ -2964,9 +2975,9 @@ Close-ExcelPackage $Excel -Show Operator - + The operator to apply to Decimal, Integer, TextLength, DateTime and time fields, for example "equal" or "between" - + ExcelDataValidationOperator ExcelDataValidationOperator @@ -2976,9 +2987,9 @@ Close-ExcelPackage $Excel -Show Value - + For Decimal, Integer, TextLength, DateTime the [first] data value - + Object Object @@ -2988,9 +2999,9 @@ Close-ExcelPackage $Excel -Show Value2 - - When using the between operator, the second data value - + + When using the between operator, the second data value + Object Object @@ -3000,9 +3011,9 @@ Close-ExcelPackage $Excel -Show Formula - + The [first] data value as a formula. Use absolute formulas $A$1 if (e.g.) you want all cells to check against the same list - + Object Object @@ -3012,9 +3023,9 @@ Close-ExcelPackage $Excel -Show Formula2 - + When using the between operator, the second data value as a formula - + Object Object @@ -3024,9 +3035,9 @@ Close-ExcelPackage $Excel -Show ValueSet - + When using the list validation type, a set of values (rather than refering to Sheet!B$2:B$100 ) - + Object Object @@ -3036,9 +3047,9 @@ Close-ExcelPackage $Excel -Show ShowErrorMessage - + Corresponds to the the 'Show Error alert ...' check box on error alert page in the Excel dialog - + SwitchParameter SwitchParameter @@ -3048,9 +3059,9 @@ Close-ExcelPackage $Excel -Show ErrorStyle - + Stop, Warning, or Infomation, corresponding to to the style setting in the Excel dialog - + ExcelDataValidationWarningStyle ExcelDataValidationWarningStyle @@ -3060,9 +3071,9 @@ Close-ExcelPackage $Excel -Show ErrorTitle - - The title for the message box corresponding to to the title setting in the Excel dialog - + + The title for the message box corresponding to to the title setting in the Excel dialog + String String @@ -3072,9 +3083,9 @@ Close-ExcelPackage $Excel -Show ErrorBody - + The error message corresponding to to the Error message setting in the Excel dialog - + String String @@ -3084,9 +3095,9 @@ Close-ExcelPackage $Excel -Show ShowPromptMessage - - Corresponds to the the 'Show Input message ...' check box on input message page in the Excel dialog - + + Corresponds to the the 'Show Input message ...' check box on input message page in the Excel dialog + SwitchParameter SwitchParameter @@ -3096,9 +3107,9 @@ Close-ExcelPackage $Excel -Show PromptBody - + The prompt message corresponding to to the Input message setting in the Excel dialog - + String String @@ -3108,9 +3119,9 @@ Close-ExcelPackage $Excel -Show PromptTitle - - The title for the message box corresponding to to the title setting in the Excel dialog - + + The title for the message box corresponding to to the title setting in the Excel dialog + String String @@ -3120,9 +3131,9 @@ Close-ExcelPackage $Excel -Show NoBlank - + By default the 'Ignore blank' option will be selected, unless NoBlank is sepcified. - + String String @@ -3144,7 +3155,7 @@ Close-ExcelPackage $Excel -Show PS\>Add-ExcelDataValidationRule -WorkSheet $PlanSheet -Range 'E2:E1001' -ValidationType Integer -Operator between -Value 0 -Value2 100 \` -ShowErrorMessage -ErrorStyle stop -ErrorTitle 'Invalid Data' -ErrorBody 'Percentage must be a whole number between 0 and 100' - This defines a validation rule on cells E2-E1001; it is an integer rule and requires a number between 0 and 100. If a value is input with a fraction, negative number, or positive number > 100 a stop dialog box appears. + This defines a validation rule on cells E2-E1001; it is an integer rule and requires a number between 0 and 100. If a value is input with a fraction, negative number, or positive number &gt; 100 a stop dialog box appears. @@ -3165,7 +3176,12 @@ Close-ExcelPackage $Excel -Show - + + + Online Version: + + + @@ -3184,9 +3200,9 @@ Close-ExcelPackage $Excel -Show Add-ExcelName Range - + The range of cells to assign as a name. - + ExcelRange ExcelRange @@ -3196,9 +3212,9 @@ Close-ExcelPackage $Excel -Show RangeName - - The name to assign to the range. If the name exists it will be updated to the new range. If no name is specified, the first cell in the range will be used as the name. - + + The name to assign to the range. If the name exists it will be updated to the new range. If no name is specified, the first cell in the range will be used as the name. + String String @@ -3211,9 +3227,9 @@ Close-ExcelPackage $Excel -Show Range - + The range of cells to assign as a name. - + ExcelRange ExcelRange @@ -3223,9 +3239,9 @@ Close-ExcelPackage $Excel -Show RangeName - - The name to assign to the range. If the name exists it will be updated to the new range. If no name is specified, the first cell in the range will be used as the name. - + + The name to assign to the range. If the name exists it will be updated to the new range. If no name is specified, the first cell in the range will be used as the name. + String String @@ -3246,11 +3262,16 @@ Close-ExcelPackage $Excel -Show -------------------------- EXAMPLE 1 -------------------------- PS\> Add-ExcelName -Range $ws.Cells[$dataRange] -RangeName $rangeName - $WS is a worksheet, and $dataRange is a string describing a range of cells - for example "A1:Z10" - which will become a named range, using the name in $rangeName. + $WS is a worksheet, and $dataRange is a string describing a range of cells - for example "A1:Z10" - which will become a named range, using the name in $rangeName. - + + + Online Version: + + + @@ -3271,9 +3292,9 @@ Close-ExcelPackage $Excel -Show Add-ExcelTable Range - + The range of cells to assign to a table. - + ExcelRange ExcelRange @@ -3283,9 +3304,9 @@ Close-ExcelPackage $Excel -Show TableName - + The name for the Table - this should be unqiue in the Workbook - auto generated names will be used if this is left empty. - + String String @@ -3295,9 +3316,9 @@ Close-ExcelPackage $Excel -Show TableStyle - + The Style for the table, by default "Medium6" is used - + None Custom @@ -3370,10 +3391,18 @@ Close-ExcelPackage $Excel -Show Medium6 - TotalSettings - - A HashTable in the form ColumnName = "Average"|"Count"|"CountNums"|"Max"|"Min"|"None"|"StdDev"|"Sum"|"Var" - if specified, -ShowTotal is not needed. - + TableTotalSettings + + A HashTable in the form of either + - ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> - + + ColumnName = @{ + Function = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> + Comment = $HoverComment + } + + if specified, -ShowTotal is not needed. + Hashtable Hashtable @@ -3383,9 +3412,9 @@ Close-ExcelPackage $Excel -Show ShowHeader - + By default the header row is shown - it can be turned off with -ShowHeader:$false. - + SwitchParameter @@ -3394,9 +3423,9 @@ Close-ExcelPackage $Excel -Show ShowFilter - + By default the filter is enabled - it can be turned off with -ShowFilter:$false. - + SwitchParameter @@ -3405,9 +3434,9 @@ Close-ExcelPackage $Excel -Show ShowTotal - + Show total adds a totals row. This does not automatically sum the columns but provides a drop-down in each to select sum, average etc - + SwitchParameter @@ -3416,9 +3445,9 @@ Close-ExcelPackage $Excel -Show ShowFirstColumn - + Highlights the first column in bold. - + SwitchParameter @@ -3427,9 +3456,9 @@ Close-ExcelPackage $Excel -Show ShowLastColumn - + Highlights the last column in bold. - + SwitchParameter @@ -3438,9 +3467,9 @@ Close-ExcelPackage $Excel -Show ShowRowStripes - + By default the table formats show striped rows, the can be turned off with -ShowRowStripes:$false - + SwitchParameter @@ -3449,9 +3478,9 @@ Close-ExcelPackage $Excel -Show ShowColumnStripes - + Turns on column stripes. - + SwitchParameter @@ -3460,9 +3489,9 @@ Close-ExcelPackage $Excel -Show PassThru - + If -PassThru is specified, the table object will be returned to allow additional changes to be made. - + SwitchParameter @@ -3474,9 +3503,9 @@ Close-ExcelPackage $Excel -Show Range - + The range of cells to assign to a table. - + ExcelRange ExcelRange @@ -3486,9 +3515,9 @@ Close-ExcelPackage $Excel -Show TableName - + The name for the Table - this should be unqiue in the Workbook - auto generated names will be used if this is left empty. - + String String @@ -3498,9 +3527,9 @@ Close-ExcelPackage $Excel -Show TableStyle - + The Style for the table, by default "Medium6" is used - + TableStyles TableStyles @@ -3510,9 +3539,9 @@ Close-ExcelPackage $Excel -Show ShowHeader - + By default the header row is shown - it can be turned off with -ShowHeader:$false. - + SwitchParameter SwitchParameter @@ -3522,9 +3551,9 @@ Close-ExcelPackage $Excel -Show ShowFilter - + By default the filter is enabled - it can be turned off with -ShowFilter:$false. - + SwitchParameter SwitchParameter @@ -3534,9 +3563,9 @@ Close-ExcelPackage $Excel -Show ShowTotal - + Show total adds a totals row. This does not automatically sum the columns but provides a drop-down in each to select sum, average etc - + SwitchParameter SwitchParameter @@ -3545,10 +3574,18 @@ Close-ExcelPackage $Excel -Show False - TotalSettings - - A HashTable in the form ColumnName = "Average"|"Count"|"CountNums"|"Max"|"Min"|"None"|"StdDev"|"Sum"|"Var" - if specified, -ShowTotal is not needed. - + TableTotalSettings + + A HashTable in the form of either + - ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> - + + ColumnName = @{ + Function = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> + Comment = $HoverComment + } + + if specified, -ShowTotal is not needed. + Hashtable Hashtable @@ -3558,9 +3595,9 @@ Close-ExcelPackage $Excel -Show ShowFirstColumn - + Highlights the first column in bold. - + SwitchParameter SwitchParameter @@ -3570,9 +3607,9 @@ Close-ExcelPackage $Excel -Show ShowLastColumn - + Highlights the last column in bold. - + SwitchParameter SwitchParameter @@ -3582,9 +3619,9 @@ Close-ExcelPackage $Excel -Show ShowRowStripes - + By default the table formats show striped rows, the can be turned off with -ShowRowStripes:$false - + SwitchParameter SwitchParameter @@ -3594,9 +3631,9 @@ Close-ExcelPackage $Excel -Show ShowColumnStripes - + Turns on column stripes. - + SwitchParameter SwitchParameter @@ -3606,9 +3643,9 @@ Close-ExcelPackage $Excel -Show PassThru - + If -PassThru is specified, the table object will be returned to allow additional changes to be made. - + SwitchParameter SwitchParameter @@ -3649,7 +3686,12 @@ Close-ExcelPackage $Excel -Show - + + + Online Version: + + + @@ -3668,9 +3710,9 @@ Close-ExcelPackage $Excel -Show Add-PivotTable PivotTableName - + Name for the new PivotTable - this will be the name of a sheet in the Workbook. - + String String @@ -3680,9 +3722,9 @@ Close-ExcelPackage $Excel -Show Address - + By default, a PivotTable will be created on its own sheet, but it can be created on an existing sheet by giving the address where the top left corner of the table should go. (Allow two rows for the filter if one is used.) - + ExcelAddressBase ExcelAddressBase @@ -3692,9 +3734,9 @@ Close-ExcelPackage $Excel -Show ExcelPackage - + An Excel-package object for the workbook. - + Object Object @@ -3704,9 +3746,9 @@ Close-ExcelPackage $Excel -Show SourceWorkSheet - + Worksheet where the data is found. - + Object Object @@ -3716,9 +3758,9 @@ Close-ExcelPackage $Excel -Show SourceRange - + Address range in the worksheet e.g "A10:F20" - the first row must be column names: if not specified the whole sheet will be used. - + Object Object @@ -3728,9 +3770,9 @@ Close-ExcelPackage $Excel -Show PivotRows - + Fields to set as rows in the PivotTable. - + Object Object @@ -3740,9 +3782,9 @@ Close-ExcelPackage $Excel -Show PivotData - + A hash table in form "FieldName"="Function", where function is one of Average, Count, CountNums, Max, Min, Product, None, StdDev, StdDevP, Sum, Var, VarP. - + Object Object @@ -3752,9 +3794,9 @@ Close-ExcelPackage $Excel -Show PivotColumns - + Fields to set as columns in the PivotTable. - + Object Object @@ -3764,9 +3806,9 @@ Close-ExcelPackage $Excel -Show PivotFilter - + Fields to use to filter in the PivotTable. - + Object Object @@ -3776,9 +3818,9 @@ Close-ExcelPackage $Excel -Show PivotDataToColumn - + If there are multiple data items in a PivotTable, by default they are shown on separate rows; this switch makes them separate columns. - + SwitchParameter @@ -3787,9 +3829,9 @@ Close-ExcelPackage $Excel -Show PivotTotals - + Define whether totals should be added to rows, columns neither, or both (the default is both). - + String String @@ -3799,9 +3841,9 @@ Close-ExcelPackage $Excel -Show NoTotalsInPivot - + Included for compatibility - equivalent to -PivotTotals "None". - + SwitchParameter @@ -3810,9 +3852,21 @@ Close-ExcelPackage $Excel -Show GroupDateRow - + The name of a row field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) - + + String + + String + + + None + + + GroupDateColumn + + The name of a Column field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) + String String @@ -3822,9 +3876,9 @@ Close-ExcelPackage $Excel -Show GroupDatePart - + The Part(s) of the date to use in the grouping (ignored if GroupDateRow is not specified) - + Years Quarters @@ -3843,9 +3897,21 @@ Close-ExcelPackage $Excel -Show GroupNumericRow - + The name of a row field which should be grouped by Number (e.g. 0-99, 100-199, 200-299 ) - + + String + + String + + + None + + + GroupNumericColumn + + The name of a Column field which should be grouped by Number (e.g. 0-99, 100-199, 200-299 ) + String String @@ -3855,9 +3921,9 @@ Close-ExcelPackage $Excel -Show GroupNumericMin - + The starting point for grouping - + Double Double @@ -3867,9 +3933,9 @@ Close-ExcelPackage $Excel -Show GroupNumericMax - + The endpoint for grouping - + Double Double @@ -3879,9 +3945,9 @@ Close-ExcelPackage $Excel -Show GroupNumericInterval - + The interval for grouping - + Double Double @@ -3891,9 +3957,9 @@ Close-ExcelPackage $Excel -Show PivotNumberFormat - + Number format to apply to the data cells in the PivotTable. - + String String @@ -3903,9 +3969,9 @@ Close-ExcelPackage $Excel -Show PivotTableStyle - + Apply a table style to the PivotTable. - + None Custom @@ -3979,9 +4045,9 @@ Close-ExcelPackage $Excel -Show PivotChartDefinition - + Use a chart definition instead of specifying chart settings one by one. - + Object Object @@ -3991,9 +4057,9 @@ Close-ExcelPackage $Excel -Show Activate - + If there is already content in the workbook the sheet with the PivotTable will not be active UNLESS Activate is specified. - + SwitchParameter @@ -4002,9 +4068,9 @@ Close-ExcelPackage $Excel -Show PassThru - + Return the PivotTable so it can be customized. - + SwitchParameter @@ -4016,9 +4082,9 @@ Close-ExcelPackage $Excel -Show Add-PivotTable PivotTableName - + Name for the new PivotTable - this will be the name of a sheet in the Workbook. - + String String @@ -4028,9 +4094,9 @@ Close-ExcelPackage $Excel -Show Address - + By default, a PivotTable will be created on its own sheet, but it can be created on an existing sheet by giving the address where the top left corner of the table should go. (Allow two rows for the filter if one is used.) - + ExcelAddressBase ExcelAddressBase @@ -4040,9 +4106,9 @@ Close-ExcelPackage $Excel -Show ExcelPackage - + An Excel-package object for the workbook. - + Object Object @@ -4052,9 +4118,9 @@ Close-ExcelPackage $Excel -Show SourceWorkSheet - + Worksheet where the data is found. - + Object Object @@ -4064,9 +4130,9 @@ Close-ExcelPackage $Excel -Show SourceRange - + Address range in the worksheet e.g "A10:F20" - the first row must be column names: if not specified the whole sheet will be used. - + Object Object @@ -4076,9 +4142,9 @@ Close-ExcelPackage $Excel -Show PivotRows - + Fields to set as rows in the PivotTable. - + Object Object @@ -4088,9 +4154,9 @@ Close-ExcelPackage $Excel -Show PivotData - + A hash table in form "FieldName"="Function", where function is one of Average, Count, CountNums, Max, Min, Product, None, StdDev, StdDevP, Sum, Var, VarP. - + Object Object @@ -4100,9 +4166,9 @@ Close-ExcelPackage $Excel -Show PivotColumns - + Fields to set as columns in the PivotTable. - + Object Object @@ -4112,9 +4178,9 @@ Close-ExcelPackage $Excel -Show PivotFilter - + Fields to use to filter in the PivotTable. - + Object Object @@ -4124,9 +4190,9 @@ Close-ExcelPackage $Excel -Show PivotDataToColumn - + If there are multiple data items in a PivotTable, by default they are shown on separate rows; this switch makes them separate columns. - + SwitchParameter @@ -4135,9 +4201,9 @@ Close-ExcelPackage $Excel -Show PivotTotals - + Define whether totals should be added to rows, columns neither, or both (the default is both). - + String String @@ -4147,9 +4213,9 @@ Close-ExcelPackage $Excel -Show NoTotalsInPivot - + Included for compatibility - equivalent to -PivotTotals "None". - + SwitchParameter @@ -4158,9 +4224,21 @@ Close-ExcelPackage $Excel -Show GroupDateRow - + The name of a row field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) - + + String + + String + + + None + + + GroupDateColumn + + The name of a Column field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) + String String @@ -4170,9 +4248,9 @@ Close-ExcelPackage $Excel -Show GroupDatePart - + The Part(s) of the date to use in the grouping (ignored if GroupDateRow is not specified) - + Years Quarters @@ -4191,9 +4269,9 @@ Close-ExcelPackage $Excel -Show GroupNumericRow - + The name of a row field which should be grouped by Number (e.g. 0-99, 100-199, 200-299 ) - + String String @@ -4202,11 +4280,23 @@ Close-ExcelPackage $Excel -Show None - GroupNumericMin - - The starting point for grouping - - Double + GroupNumericColumn + + The name of a Column field which should be grouped by Number (e.g. 0-99, 100-199, 200-299 ) + + String + + String + + + None + + + GroupNumericMin + + The starting point for grouping + + Double Double @@ -4215,9 +4305,9 @@ Close-ExcelPackage $Excel -Show GroupNumericMax - + The endpoint for grouping - + Double Double @@ -4227,9 +4317,9 @@ Close-ExcelPackage $Excel -Show GroupNumericInterval - + The interval for grouping - + Double Double @@ -4239,9 +4329,9 @@ Close-ExcelPackage $Excel -Show PivotNumberFormat - + Number format to apply to the data cells in the PivotTable. - + String String @@ -4251,9 +4341,9 @@ Close-ExcelPackage $Excel -Show PivotTableStyle - + Apply a table style to the PivotTable. - + None Custom @@ -4327,9 +4417,9 @@ Close-ExcelPackage $Excel -Show IncludePivotChart - + If specified, a chart will be included. - + SwitchParameter @@ -4338,9 +4428,9 @@ Close-ExcelPackage $Excel -Show ChartTitle - + Optional title for the pivot chart, by default the title omitted. - + String String @@ -4350,9 +4440,9 @@ Close-ExcelPackage $Excel -Show ChartHeight - + Height of the chart in Pixels (400 by default). - + Int32 Int32 @@ -4362,9 +4452,9 @@ Close-ExcelPackage $Excel -Show ChartWidth - + Width of the chart in Pixels (600 by default). - + Int32 Int32 @@ -4374,9 +4464,9 @@ Close-ExcelPackage $Excel -Show ChartRow - + Cell position of the top left corner of the chart, there will be this number of rows above the top edge of the chart (default is 0, chart starts at top edge of row 1). - + Int32 Int32 @@ -4386,9 +4476,9 @@ Close-ExcelPackage $Excel -Show ChartColumn - + Cell position of the top left corner of the chart, there will be this number of cells to the left of the chart (default is 4, chart starts at left edge of column E). - + Int32 Int32 @@ -4398,9 +4488,9 @@ Close-ExcelPackage $Excel -Show ChartRowOffSetPixels - + Vertical offset of the chart from the cell corner. - + Int32 Int32 @@ -4410,9 +4500,9 @@ Close-ExcelPackage $Excel -Show ChartColumnOffSetPixels - + Horizontal offset of the chart from the cell corner. - + Int32 Int32 @@ -4422,9 +4512,9 @@ Close-ExcelPackage $Excel -Show ChartType - + Type of chart; defaults to "Pie". - + Area Line @@ -4509,9 +4599,9 @@ Close-ExcelPackage $Excel -Show NoLegend - + If specified hides the chart legend. - + SwitchParameter @@ -4520,9 +4610,9 @@ Close-ExcelPackage $Excel -Show ShowCategory - + If specified attaches the category to slices in a pie chart : not supported on all chart types, this may give errors if applied to an unsupported type. - + SwitchParameter @@ -4531,9 +4621,9 @@ Close-ExcelPackage $Excel -Show ShowPercent - + If specified attaches percentages to slices in a pie chart. - + SwitchParameter @@ -4542,9 +4632,9 @@ Close-ExcelPackage $Excel -Show Activate - + If there is already content in the workbook the sheet with the PivotTable will not be active UNLESS Activate is specified. - + SwitchParameter @@ -4553,9 +4643,9 @@ Close-ExcelPackage $Excel -Show PassThru - + Return the PivotTable so it can be customized. - + SwitchParameter @@ -4567,9 +4657,9 @@ Close-ExcelPackage $Excel -Show PivotTableName - + Name for the new PivotTable - this will be the name of a sheet in the Workbook. - + String String @@ -4579,9 +4669,9 @@ Close-ExcelPackage $Excel -Show Address - + By default, a PivotTable will be created on its own sheet, but it can be created on an existing sheet by giving the address where the top left corner of the table should go. (Allow two rows for the filter if one is used.) - + ExcelAddressBase ExcelAddressBase @@ -4591,9 +4681,9 @@ Close-ExcelPackage $Excel -Show ExcelPackage - + An Excel-package object for the workbook. - + Object Object @@ -4603,9 +4693,9 @@ Close-ExcelPackage $Excel -Show SourceWorkSheet - + Worksheet where the data is found. - + Object Object @@ -4615,9 +4705,9 @@ Close-ExcelPackage $Excel -Show SourceRange - + Address range in the worksheet e.g "A10:F20" - the first row must be column names: if not specified the whole sheet will be used. - + Object Object @@ -4627,9 +4717,9 @@ Close-ExcelPackage $Excel -Show PivotRows - + Fields to set as rows in the PivotTable. - + Object Object @@ -4639,9 +4729,9 @@ Close-ExcelPackage $Excel -Show PivotData - + A hash table in form "FieldName"="Function", where function is one of Average, Count, CountNums, Max, Min, Product, None, StdDev, StdDevP, Sum, Var, VarP. - + Object Object @@ -4651,9 +4741,9 @@ Close-ExcelPackage $Excel -Show PivotColumns - + Fields to set as columns in the PivotTable. - + Object Object @@ -4663,9 +4753,9 @@ Close-ExcelPackage $Excel -Show PivotFilter - + Fields to use to filter in the PivotTable. - + Object Object @@ -4675,9 +4765,9 @@ Close-ExcelPackage $Excel -Show PivotDataToColumn - + If there are multiple data items in a PivotTable, by default they are shown on separate rows; this switch makes them separate columns. - + SwitchParameter SwitchParameter @@ -4687,9 +4777,9 @@ Close-ExcelPackage $Excel -Show PivotTotals - + Define whether totals should be added to rows, columns neither, or both (the default is both). - + String String @@ -4699,9 +4789,9 @@ Close-ExcelPackage $Excel -Show NoTotalsInPivot - + Included for compatibility - equivalent to -PivotTotals "None". - + SwitchParameter SwitchParameter @@ -4711,9 +4801,21 @@ Close-ExcelPackage $Excel -Show GroupDateRow - + The name of a row field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) - + + String + + String + + + None + + + GroupDateColumn + + The name of a Column field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) + String String @@ -4723,9 +4825,9 @@ Close-ExcelPackage $Excel -Show GroupDatePart - + The Part(s) of the date to use in the grouping (ignored if GroupDateRow is not specified) - + eDateGroupBy[] eDateGroupBy[] @@ -4735,9 +4837,21 @@ Close-ExcelPackage $Excel -Show GroupNumericRow - + The name of a row field which should be grouped by Number (e.g. 0-99, 100-199, 200-299 ) - + + String + + String + + + None + + + GroupNumericColumn + + The name of a Column field which should be grouped by Number (e.g. 0-99, 100-199, 200-299 ) + String String @@ -4747,9 +4861,9 @@ Close-ExcelPackage $Excel -Show GroupNumericMin - + The starting point for grouping - + Double Double @@ -4759,9 +4873,9 @@ Close-ExcelPackage $Excel -Show GroupNumericMax - + The endpoint for grouping - + Double Double @@ -4771,9 +4885,9 @@ Close-ExcelPackage $Excel -Show GroupNumericInterval - + The interval for grouping - + Double Double @@ -4783,9 +4897,9 @@ Close-ExcelPackage $Excel -Show PivotNumberFormat - + Number format to apply to the data cells in the PivotTable. - + String String @@ -4795,9 +4909,9 @@ Close-ExcelPackage $Excel -Show PivotTableStyle - + Apply a table style to the PivotTable. - + TableStyles TableStyles @@ -4807,9 +4921,9 @@ Close-ExcelPackage $Excel -Show PivotChartDefinition - + Use a chart definition instead of specifying chart settings one by one. - + Object Object @@ -4819,9 +4933,9 @@ Close-ExcelPackage $Excel -Show IncludePivotChart - + If specified, a chart will be included. - + SwitchParameter SwitchParameter @@ -4831,9 +4945,9 @@ Close-ExcelPackage $Excel -Show ChartTitle - + Optional title for the pivot chart, by default the title omitted. - + String String @@ -4843,9 +4957,9 @@ Close-ExcelPackage $Excel -Show ChartHeight - + Height of the chart in Pixels (400 by default). - + Int32 Int32 @@ -4855,9 +4969,9 @@ Close-ExcelPackage $Excel -Show ChartWidth - + Width of the chart in Pixels (600 by default). - + Int32 Int32 @@ -4867,9 +4981,9 @@ Close-ExcelPackage $Excel -Show ChartRow - + Cell position of the top left corner of the chart, there will be this number of rows above the top edge of the chart (default is 0, chart starts at top edge of row 1). - + Int32 Int32 @@ -4879,9 +4993,9 @@ Close-ExcelPackage $Excel -Show ChartColumn - + Cell position of the top left corner of the chart, there will be this number of cells to the left of the chart (default is 4, chart starts at left edge of column E). - + Int32 Int32 @@ -4891,9 +5005,9 @@ Close-ExcelPackage $Excel -Show ChartRowOffSetPixels - + Vertical offset of the chart from the cell corner. - + Int32 Int32 @@ -4903,9 +5017,9 @@ Close-ExcelPackage $Excel -Show ChartColumnOffSetPixels - + Horizontal offset of the chart from the cell corner. - + Int32 Int32 @@ -4915,9 +5029,9 @@ Close-ExcelPackage $Excel -Show ChartType - + Type of chart; defaults to "Pie". - + eChartType eChartType @@ -4927,9 +5041,9 @@ Close-ExcelPackage $Excel -Show NoLegend - + If specified hides the chart legend. - + SwitchParameter SwitchParameter @@ -4939,9 +5053,9 @@ Close-ExcelPackage $Excel -Show ShowCategory - + If specified attaches the category to slices in a pie chart : not supported on all chart types, this may give errors if applied to an unsupported type. - + SwitchParameter SwitchParameter @@ -4951,9 +5065,9 @@ Close-ExcelPackage $Excel -Show ShowPercent - + If specified attaches percentages to slices in a pie chart. - + SwitchParameter SwitchParameter @@ -4963,9 +5077,9 @@ Close-ExcelPackage $Excel -Show Activate - + If there is already content in the workbook the sheet with the PivotTable will not be active UNLESS Activate is specified. - + SwitchParameter SwitchParameter @@ -4975,9 +5089,9 @@ Close-ExcelPackage $Excel -Show PassThru - + Return the PivotTable so it can be customized. - + SwitchParameter SwitchParameter @@ -5010,7 +5124,7 @@ Close-ExcelPackage $Excel -Show Close-ExcelPackage $excel -Show This exports data to new workbook and creates a table with the data in it. - The Pivot table is added on its own page, the table created in the first command is used as the source for the PivotTable; which counts the service names in for each Status. + The Pivot table is added on its own page, the table created in the first command is used as the source for the PivotTable; which counts the service names in for each Status. At the end the Pivot page is made active. @@ -5080,7 +5194,12 @@ Boston,2/18/2018,1000 - + + + Online Version: + + + @@ -5101,9 +5220,9 @@ Boston,2/18/2018,1000 Add-WorkSheet ExcelPackage - + An object representing an Excel Package. - + ExcelPackage ExcelPackage @@ -5113,9 +5232,9 @@ Boston,2/18/2018,1000 WorksheetName - + The name of the worksheet, 'Sheet1' by default. - + String String @@ -5125,9 +5244,9 @@ Boston,2/18/2018,1000 ClearSheet - + If the worksheet already exists, by default it will returned, unless -ClearSheet is specified in which case it will be deleted and re-created. - + SwitchParameter @@ -5136,10 +5255,10 @@ Boston,2/18/2018,1000 MoveToStart - + If specified, the worksheet will be moved to the start of the workbook. MoveToStart takes precedence over MoveToEnd, Movebefore and MoveAfter if more than one is specified. - + SwitchParameter @@ -5148,10 +5267,10 @@ Boston,2/18/2018,1000 MoveToEnd - + If specified, the worksheet will be moved to the end of the workbook. (This is the default position for newly created sheets, but it can be used to move existing sheets.) - + SwitchParameter @@ -5160,10 +5279,10 @@ Boston,2/18/2018,1000 MoveBefore - + If specified, the worksheet will be moved before the nominated one (which can be an index starting from 1, or a name). MoveBefore takes precedence over MoveAfter if both are specified. - + Object Object @@ -5173,10 +5292,10 @@ Boston,2/18/2018,1000 MoveAfter - + If specified, the worksheet will be moved after the nominated one (which can be an index starting from 1, or a name or *). If * is used, the worksheet names will be examined starting with the first one, and the sheet placed after the last sheet which comes before it alphabetically. - + Object Object @@ -5186,9 +5305,9 @@ Boston,2/18/2018,1000 Activate - + If there is already content in the workbook the new sheet will not be active UNLESS Activate is specified. - + SwitchParameter @@ -5197,9 +5316,9 @@ Boston,2/18/2018,1000 CopySource - + If worksheet is provided as a copy source the new worksheet will be a copy of it. The source can be in the same workbook, or in a different file. - + ExcelWorksheet ExcelWorksheet @@ -5209,9 +5328,9 @@ Boston,2/18/2018,1000 NoClobber - + Ignored but retained for backwards compatibility. - + SwitchParameter @@ -5223,9 +5342,9 @@ Boston,2/18/2018,1000 Add-WorkSheet ExcelWorkbook - + An Excel Workbook to which the Worksheet will be added - a Package contains one Workbook, so you can use whichever fits at the time. - + ExcelWorkbook ExcelWorkbook @@ -5235,9 +5354,9 @@ Boston,2/18/2018,1000 WorksheetName - + The name of the worksheet, 'Sheet1' by default. - + String String @@ -5247,9 +5366,9 @@ Boston,2/18/2018,1000 ClearSheet - + If the worksheet already exists, by default it will returned, unless -ClearSheet is specified in which case it will be deleted and re-created. - + SwitchParameter @@ -5258,10 +5377,10 @@ Boston,2/18/2018,1000 MoveToStart - + If specified, the worksheet will be moved to the start of the workbook. MoveToStart takes precedence over MoveToEnd, Movebefore and MoveAfter if more than one is specified. - + SwitchParameter @@ -5270,10 +5389,10 @@ Boston,2/18/2018,1000 MoveToEnd - + If specified, the worksheet will be moved to the end of the workbook. (This is the default position for newly created sheets, but it can be used to move existing sheets.) - + SwitchParameter @@ -5282,10 +5401,10 @@ Boston,2/18/2018,1000 MoveBefore - + If specified, the worksheet will be moved before the nominated one (which can be an index starting from 1, or a name). MoveBefore takes precedence over MoveAfter if both are specified. - + Object Object @@ -5295,10 +5414,10 @@ Boston,2/18/2018,1000 MoveAfter - + If specified, the worksheet will be moved after the nominated one (which can be an index starting from 1, or a name or *). If * is used, the worksheet names will be examined starting with the first one, and the sheet placed after the last sheet which comes before it alphabetically. - + Object Object @@ -5308,9 +5427,9 @@ Boston,2/18/2018,1000 Activate - + If there is already content in the workbook the new sheet will not be active UNLESS Activate is specified. - + SwitchParameter @@ -5319,9 +5438,9 @@ Boston,2/18/2018,1000 CopySource - + If worksheet is provided as a copy source the new worksheet will be a copy of it. The source can be in the same workbook, or in a different file. - + ExcelWorksheet ExcelWorksheet @@ -5331,9 +5450,9 @@ Boston,2/18/2018,1000 NoClobber - + Ignored but retained for backwards compatibility. - + SwitchParameter @@ -5345,9 +5464,9 @@ Boston,2/18/2018,1000 ExcelPackage - + An object representing an Excel Package. - + ExcelPackage ExcelPackage @@ -5357,9 +5476,9 @@ Boston,2/18/2018,1000 ExcelWorkbook - + An Excel Workbook to which the Worksheet will be added - a Package contains one Workbook, so you can use whichever fits at the time. - + ExcelWorkbook ExcelWorkbook @@ -5369,9 +5488,9 @@ Boston,2/18/2018,1000 WorksheetName - + The name of the worksheet, 'Sheet1' by default. - + String String @@ -5381,9 +5500,9 @@ Boston,2/18/2018,1000 ClearSheet - + If the worksheet already exists, by default it will returned, unless -ClearSheet is specified in which case it will be deleted and re-created. - + SwitchParameter SwitchParameter @@ -5393,10 +5512,10 @@ Boston,2/18/2018,1000 MoveToStart - + If specified, the worksheet will be moved to the start of the workbook. MoveToStart takes precedence over MoveToEnd, Movebefore and MoveAfter if more than one is specified. - + SwitchParameter SwitchParameter @@ -5406,10 +5525,10 @@ Boston,2/18/2018,1000 MoveToEnd - + If specified, the worksheet will be moved to the end of the workbook. (This is the default position for newly created sheets, but it can be used to move existing sheets.) - + SwitchParameter SwitchParameter @@ -5419,10 +5538,10 @@ Boston,2/18/2018,1000 MoveBefore - + If specified, the worksheet will be moved before the nominated one (which can be an index starting from 1, or a name). MoveBefore takes precedence over MoveAfter if both are specified. - + Object Object @@ -5432,10 +5551,10 @@ Boston,2/18/2018,1000 MoveAfter - + If specified, the worksheet will be moved after the nominated one (which can be an index starting from 1, or a name or *). If * is used, the worksheet names will be examined starting with the first one, and the sheet placed after the last sheet which comes before it alphabetically. - + Object Object @@ -5445,9 +5564,9 @@ Boston,2/18/2018,1000 Activate - + If there is already content in the workbook the new sheet will not be active UNLESS Activate is specified. - + SwitchParameter SwitchParameter @@ -5457,9 +5576,9 @@ Boston,2/18/2018,1000 CopySource - + If worksheet is provided as a copy source the new worksheet will be a copy of it. The source can be in the same workbook, or in a different file. - + ExcelWorksheet ExcelWorksheet @@ -5469,9 +5588,9 @@ Boston,2/18/2018,1000 NoClobber - + Ignored but retained for backwards compatibility. - + SwitchParameter SwitchParameter @@ -5522,7 +5641,12 @@ Boston,2/18/2018,1000 - + + + Online Version: + + + @@ -5543,9 +5667,9 @@ Boston,2/18/2018,1000 Close-ExcelPackage ExcelPackage - + Package to close. - + ExcelPackage ExcelPackage @@ -5555,9 +5679,9 @@ Boston,2/18/2018,1000 SaveAs - + Save file with a new name (ignored if -NoSave Specified). - + Object Object @@ -5567,9 +5691,9 @@ Boston,2/18/2018,1000 Password - + Password to protect the file. - + String String @@ -5579,9 +5703,9 @@ Boston,2/18/2018,1000 Show - + Open the file in Excel. - + SwitchParameter @@ -5590,9 +5714,9 @@ Boston,2/18/2018,1000 NoSave - + Abandon the file without saving. - + SwitchParameter @@ -5601,9 +5725,9 @@ Boston,2/18/2018,1000 Calculate - + Attempt to recalculation the workbook before saving - + SwitchParameter @@ -5615,9 +5739,9 @@ Boston,2/18/2018,1000 ExcelPackage - + Package to close. - + ExcelPackage ExcelPackage @@ -5627,9 +5751,9 @@ Boston,2/18/2018,1000 Show - + Open the file in Excel. - + SwitchParameter SwitchParameter @@ -5639,9 +5763,9 @@ Boston,2/18/2018,1000 NoSave - + Abandon the file without saving. - + SwitchParameter SwitchParameter @@ -5651,9 +5775,9 @@ Boston,2/18/2018,1000 SaveAs - + Save file with a new name (ignored if -NoSave Specified). - + Object Object @@ -5663,9 +5787,9 @@ Boston,2/18/2018,1000 Password - + Password to protect the file. - + String String @@ -5675,9 +5799,9 @@ Boston,2/18/2018,1000 Calculate - + Attempt to recalculation the workbook before saving - + SwitchParameter SwitchParameter @@ -5709,7 +5833,12 @@ Boston,2/18/2018,1000 - + + + Online Version: + + + @@ -5733,9 +5862,9 @@ Boston,2/18/2018,1000 Compare-WorkSheet Referencefile - + First file to compare. - + Object Object @@ -5745,9 +5874,9 @@ Boston,2/18/2018,1000 Differencefile - + Second file to compare. - + Object Object @@ -5757,9 +5886,9 @@ Boston,2/18/2018,1000 WorkSheetName - + Name(s) of worksheets to compare. - + Object Object @@ -5769,9 +5898,9 @@ Boston,2/18/2018,1000 Property - + Properties to include in the comparison - supports wildcards, default is "*". - + Object Object @@ -5781,9 +5910,9 @@ Boston,2/18/2018,1000 ExcludeProperty - + Properties to exclude from the comparison - supports wildcards. - + Object Object @@ -5793,9 +5922,9 @@ Boston,2/18/2018,1000 Headername - + Specifies custom property names to use, instead of the values defined in the starting row of the sheet. - + String[] String[] @@ -5805,9 +5934,9 @@ Boston,2/18/2018,1000 Startrow - + The row from where we start to import data: all rows above the start row are disregarded. By default, this is the first row. - + Int32 Int32 @@ -5817,9 +5946,9 @@ Boston,2/18/2018,1000 AllDataBackgroundColor - + If specified, highlights all the cells - so you can make Equal cells one color, and Different cells another. - + Object Object @@ -5829,9 +5958,9 @@ Boston,2/18/2018,1000 BackgroundColor - + If specified, highlights the rows with differences. - + Object Object @@ -5841,9 +5970,9 @@ Boston,2/18/2018,1000 TabColor - + If specified identifies the tabs which contain difference rows (ignored if -BackgroundColor is omitted). - + Object Object @@ -5853,9 +5982,9 @@ Boston,2/18/2018,1000 Key - + Name of a column which is unique and will be used to add a row to the DIFF object, defaults to "Name". - + Object Object @@ -5865,9 +5994,9 @@ Boston,2/18/2018,1000 FontColor - + If specified, highlights the DIFF columns in rows which have the same key. - + Object Object @@ -5877,9 +6006,9 @@ Boston,2/18/2018,1000 Show - + If specified, opens the Excel workbooks instead of outputting the diff to the console (unless -PassThru is also specified). - + SwitchParameter @@ -5888,9 +6017,9 @@ Boston,2/18/2018,1000 GridView - + If specified, the command tries to the show the DIFF in a Grid-View and not on the console (unless-PassThru is also specified). This works best with few columns selected, and requires a key. - + SwitchParameter @@ -5899,9 +6028,9 @@ Boston,2/18/2018,1000 PassThru - + If specified a full set of DIFF data is returned without filtering to the specified properties. - + SwitchParameter @@ -5910,9 +6039,9 @@ Boston,2/18/2018,1000 IncludeEqual - + If specified the result will include equal rows as well. By default only different rows are returned. - + SwitchParameter @@ -5921,9 +6050,9 @@ Boston,2/18/2018,1000 ExcludeDifferent - + If specified, the result includes only the rows where both are equal. - + SwitchParameter @@ -5935,9 +6064,9 @@ Boston,2/18/2018,1000 Compare-WorkSheet Referencefile - + First file to compare. - + Object Object @@ -5947,9 +6076,9 @@ Boston,2/18/2018,1000 Differencefile - + Second file to compare. - + Object Object @@ -5959,9 +6088,9 @@ Boston,2/18/2018,1000 WorkSheetName - + Name(s) of worksheets to compare. - + Object Object @@ -5971,9 +6100,9 @@ Boston,2/18/2018,1000 Property - + Properties to include in the comparison - supports wildcards, default is "*". - + Object Object @@ -5983,9 +6112,9 @@ Boston,2/18/2018,1000 ExcludeProperty - + Properties to exclude from the comparison - supports wildcards. - + Object Object @@ -5995,9 +6124,9 @@ Boston,2/18/2018,1000 NoHeader - + Automatically generate property names (P1, P2, P3 ...) instead of the using the values the starting row of the sheet. - + SwitchParameter @@ -6006,9 +6135,9 @@ Boston,2/18/2018,1000 Startrow - + The row from where we start to import data: all rows above the start row are disregarded. By default, this is the first row. - + Int32 Int32 @@ -6018,9 +6147,9 @@ Boston,2/18/2018,1000 AllDataBackgroundColor - + If specified, highlights all the cells - so you can make Equal cells one color, and Different cells another. - + Object Object @@ -6030,9 +6159,9 @@ Boston,2/18/2018,1000 BackgroundColor - + If specified, highlights the rows with differences. - + Object Object @@ -6042,9 +6171,9 @@ Boston,2/18/2018,1000 TabColor - + If specified identifies the tabs which contain difference rows (ignored if -BackgroundColor is omitted). - + Object Object @@ -6054,9 +6183,9 @@ Boston,2/18/2018,1000 Key - + Name of a column which is unique and will be used to add a row to the DIFF object, defaults to "Name". - + Object Object @@ -6066,9 +6195,9 @@ Boston,2/18/2018,1000 FontColor - + If specified, highlights the DIFF columns in rows which have the same key. - + Object Object @@ -6078,9 +6207,9 @@ Boston,2/18/2018,1000 Show - + If specified, opens the Excel workbooks instead of outputting the diff to the console (unless -PassThru is also specified). - + SwitchParameter @@ -6089,9 +6218,9 @@ Boston,2/18/2018,1000 GridView - + If specified, the command tries to the show the DIFF in a Grid-View and not on the console (unless-PassThru is also specified). This works best with few columns selected, and requires a key. - + SwitchParameter @@ -6100,9 +6229,9 @@ Boston,2/18/2018,1000 PassThru - + If specified a full set of DIFF data is returned without filtering to the specified properties. - + SwitchParameter @@ -6111,9 +6240,9 @@ Boston,2/18/2018,1000 IncludeEqual - + If specified the result will include equal rows as well. By default only different rows are returned. - + SwitchParameter @@ -6122,9 +6251,9 @@ Boston,2/18/2018,1000 ExcludeDifferent - + If specified, the result includes only the rows where both are equal. - + SwitchParameter @@ -6136,9 +6265,9 @@ Boston,2/18/2018,1000 Referencefile - + First file to compare. - + Object Object @@ -6148,9 +6277,9 @@ Boston,2/18/2018,1000 Differencefile - + Second file to compare. - + Object Object @@ -6160,9 +6289,9 @@ Boston,2/18/2018,1000 WorkSheetName - + Name(s) of worksheets to compare. - + Object Object @@ -6172,9 +6301,9 @@ Boston,2/18/2018,1000 Property - + Properties to include in the comparison - supports wildcards, default is "*". - + Object Object @@ -6184,9 +6313,9 @@ Boston,2/18/2018,1000 ExcludeProperty - + Properties to exclude from the comparison - supports wildcards. - + Object Object @@ -6196,9 +6325,9 @@ Boston,2/18/2018,1000 Headername - + Specifies custom property names to use, instead of the values defined in the starting row of the sheet. - + String[] String[] @@ -6208,9 +6337,9 @@ Boston,2/18/2018,1000 NoHeader - + Automatically generate property names (P1, P2, P3 ...) instead of the using the values the starting row of the sheet. - + SwitchParameter SwitchParameter @@ -6220,9 +6349,9 @@ Boston,2/18/2018,1000 Startrow - + The row from where we start to import data: all rows above the start row are disregarded. By default, this is the first row. - + Int32 Int32 @@ -6232,9 +6361,9 @@ Boston,2/18/2018,1000 AllDataBackgroundColor - + If specified, highlights all the cells - so you can make Equal cells one color, and Different cells another. - + Object Object @@ -6244,9 +6373,9 @@ Boston,2/18/2018,1000 BackgroundColor - + If specified, highlights the rows with differences. - + Object Object @@ -6256,9 +6385,9 @@ Boston,2/18/2018,1000 TabColor - + If specified identifies the tabs which contain difference rows (ignored if -BackgroundColor is omitted). - + Object Object @@ -6268,9 +6397,9 @@ Boston,2/18/2018,1000 Key - + Name of a column which is unique and will be used to add a row to the DIFF object, defaults to "Name". - + Object Object @@ -6280,9 +6409,9 @@ Boston,2/18/2018,1000 FontColor - + If specified, highlights the DIFF columns in rows which have the same key. - + Object Object @@ -6292,9 +6421,9 @@ Boston,2/18/2018,1000 Show - + If specified, opens the Excel workbooks instead of outputting the diff to the console (unless -PassThru is also specified). - + SwitchParameter SwitchParameter @@ -6304,9 +6433,9 @@ Boston,2/18/2018,1000 GridView - + If specified, the command tries to the show the DIFF in a Grid-View and not on the console (unless-PassThru is also specified). This works best with few columns selected, and requires a key. - + SwitchParameter SwitchParameter @@ -6316,9 +6445,9 @@ Boston,2/18/2018,1000 PassThru - + If specified a full set of DIFF data is returned without filtering to the specified properties. - + SwitchParameter SwitchParameter @@ -6328,9 +6457,9 @@ Boston,2/18/2018,1000 IncludeEqual - + If specified the result will include equal rows as well. By default only different rows are returned. - + SwitchParameter SwitchParameter @@ -6340,9 +6469,9 @@ Boston,2/18/2018,1000 ExcludeDifferent - + If specified, the result includes only the rows where both are equal. - + SwitchParameter SwitchParameter @@ -6419,7 +6548,12 @@ Boston,2/18/2018,1000 - + + + Online Version: + + + @@ -6438,16 +6572,17 @@ Boston,2/18/2018,1000 * Saves the clipboard contents as an image file (it will save as .JPG unless the file name ends .BMP or .PNG) * Copies a single cell to the clipboard (to prevent the "you have put a lot in the clipboard" message appearing) * Closes Excel - Unlike most functions in the module it needs a local copy of Excel to be installed. + + Unlike most functions in the module it needs a local copy of Excel to be installed. EXAMPLES Convert-ExcelRangeToImage Path - + Path to the Excel file - + Object Object @@ -6457,9 +6592,9 @@ Boston,2/18/2018,1000 WorkSheetname - + Worksheet name - if none is specified "Sheet1" will be assumed - + Object Object @@ -6469,9 +6604,9 @@ Boston,2/18/2018,1000 Range - + Range of cells within the sheet, e.g "A1:Z99" - + Object Object @@ -6481,9 +6616,9 @@ Boston,2/18/2018,1000 Destination - + A bmp, png or jpg file where the result will be saved - + Object Object @@ -6493,9 +6628,9 @@ Boston,2/18/2018,1000 Show - + If specified opens the image in the default viewer. - + SwitchParameter @@ -6507,9 +6642,9 @@ Boston,2/18/2018,1000 Path - + Path to the Excel file - + Object Object @@ -6519,9 +6654,9 @@ Boston,2/18/2018,1000 WorkSheetname - + Worksheet name - if none is specified "Sheet1" will be assumed - + Object Object @@ -6531,9 +6666,9 @@ Boston,2/18/2018,1000 Range - + Range of cells within the sheet, e.g "A1:Z99" - + Object Object @@ -6543,9 +6678,9 @@ Boston,2/18/2018,1000 Destination - + A bmp, png or jpg file where the result will be saved - + Object Object @@ -6555,9 +6690,9 @@ Boston,2/18/2018,1000 Show - + If specified opens the image in the default viewer. - + SwitchParameter SwitchParameter @@ -6574,7 +6709,12 @@ Boston,2/18/2018,1000 - + + + Online Version: + + + @@ -6586,16 +6726,16 @@ Boston,2/18/2018,1000 - This command provides a convenient way to run Import-Excel @ImportParameters | Select-Object @selectParameters | export-Csv @ ExportParameters It can take the parameters -AsText , as used in Import-Excel, )Properties & -ExcludeProperties as used in Select-Object and -Append, -Delimiter and -Encoding as used in Export-CSV + This command provides a convenient way to run Import-Excel @ImportParameters \| Select-Object @selectParameters \| export-Csv @ ExportParameters It can take the parameters -AsText , as used in Import-Excel, )Properties & -ExcludeProperties as used in Select-Object and -Append, -Delimiter and -Encoding as used in Export-CSV ConvertFrom-ExcelSheet Path - + The path to the .XLSX file which will be exported. - + String String @@ -6605,9 +6745,9 @@ Boston,2/18/2018,1000 OutputPath - + The directory where the output file(s) will be created. The file name(s) will match the name of the workbook page which contained the data. - + String String @@ -6617,9 +6757,9 @@ Boston,2/18/2018,1000 SheetName - + The name of a sheet to export, or a regular expression which is used to identify sheets - + String String @@ -6629,9 +6769,9 @@ Boston,2/18/2018,1000 Encoding - + Sets the text encoding for the output data file; UTF8 bu default - + Encoding Encoding @@ -6641,9 +6781,9 @@ Boston,2/18/2018,1000 Extension - + Sets the file extension for the exported data, defaults to CSV - + .txt .log @@ -6658,9 +6798,9 @@ Boston,2/18/2018,1000 Delimiter - + Selects , or ; as the delimeter for the exported data - if not specified , is used by default. - + ; @@ -6675,9 +6815,9 @@ Boston,2/18/2018,1000 Property - + Specifies the properties to select. Wildcards are permitted - the default is "*". The value of the Property parameter can be a new calculated property, and follows the same pattern as Select-Item - + Object Object @@ -6687,9 +6827,9 @@ Boston,2/18/2018,1000 ExcludeProperty - + Specifies the properties that to exclude from the export. Wildcards are permitted. This parameter is effective only when the command also includes the Property parameter. - + Object Object @@ -6699,9 +6839,9 @@ Boston,2/18/2018,1000 AsText - + AsText allows selected columns to be returned as the text displayed in their cells, instead of their value. (* is supported as a wildcard.) - + String[] String[] @@ -6711,9 +6851,9 @@ Boston,2/18/2018,1000 AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -6723,9 +6863,9 @@ Boston,2/18/2018,1000 Append - - Use this parameter to have the export add output to the end of the file. Without this parameter, the command replaces the file contents without warning. - + + Use this parameter to have the export add output to the end of the file. Without this parameter, the command replaces the file contents without warning. + SwitchParameter @@ -6737,9 +6877,9 @@ Boston,2/18/2018,1000 Append - - Use this parameter to have the export add output to the end of the file. Without this parameter, the command replaces the file contents without warning. - + + Use this parameter to have the export add output to the end of the file. Without this parameter, the command replaces the file contents without warning. + SwitchParameter SwitchParameter @@ -6749,9 +6889,9 @@ Boston,2/18/2018,1000 AsText - + AsText allows selected columns to be returned as the text displayed in their cells, instead of their value. (* is supported as a wildcard.) - + String[] String[] @@ -6761,9 +6901,9 @@ Boston,2/18/2018,1000 AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -6773,9 +6913,9 @@ Boston,2/18/2018,1000 Delimiter - + Selects , or ; as the delimeter for the exported data - if not specified , is used by default. - + String String @@ -6785,9 +6925,9 @@ Boston,2/18/2018,1000 Encoding - + Sets the text encoding for the output data file; UTF8 bu default - + Encoding Encoding @@ -6797,9 +6937,9 @@ Boston,2/18/2018,1000 ExcludeProperty - + Specifies the properties that to exclude from the export. Wildcards are permitted. This parameter is effective only when the command also includes the Property parameter. - + Object Object @@ -6809,9 +6949,9 @@ Boston,2/18/2018,1000 Extension - + Sets the file extension for the exported data, defaults to CSV - + String String @@ -6821,9 +6961,9 @@ Boston,2/18/2018,1000 OutputPath - + The directory where the output file(s) will be created. The file name(s) will match the name of the workbook page which contained the data. - + String String @@ -6833,9 +6973,9 @@ Boston,2/18/2018,1000 Path - + The path to the .XLSX file which will be exported. - + String String @@ -6845,9 +6985,9 @@ Boston,2/18/2018,1000 Property - + Specifies the properties to select. Wildcards are permitted - the default is "*". The value of the Property parameter can be a new calculated property, and follows the same pattern as Select-Item - + Object Object @@ -6857,9 +6997,9 @@ Boston,2/18/2018,1000 SheetName - + The name of a sheet to export, or a regular expression which is used to identify sheets - + String String @@ -6912,7 +7052,7 @@ Boston,2/18/2018,1000 Online Version: - https://github.com/dfinke/ImportExcel + @@ -6933,9 +7073,9 @@ Boston,2/18/2018,1000 ConvertFrom-ExcelToSQLInsert TableName - + Name of the target database table. - + Object Object @@ -6945,9 +7085,9 @@ Boston,2/18/2018,1000 Path - + Path to an existing .XLSX file This parameter is passed to Import-Excel as is. - + Object Object @@ -6957,9 +7097,9 @@ Boston,2/18/2018,1000 WorkSheetname - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. This parameter is passed to Import-Excel as is. - + Object Object @@ -6969,9 +7109,9 @@ Boston,2/18/2018,1000 StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. When one of both parameters are provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -6981,9 +7121,9 @@ Boston,2/18/2018,1000 Header - - Specifies custom property names to use, instead of the values defined in the column headers of the TopRow. If you provide fewr header names than there is data in the worksheet, then only the data with a corresponding header name will be imported and the data without header name will be disregarded. If you provide more header names than there is data in the worksheet, then all data will be imported and all objects will have all the property names you defined in the header names. As such, the last properties will be blank as there is no data for them. - + + Specifies custom property names to use, instead of the values defined in the column headers of the TopRow. If you provide fewer header names than there is data in the worksheet, then only the data with a corresponding header name will be imported and the data without header name will be disregarded. If you provide more header names than there is data in the worksheet, then all data will be imported and all objects will have all the property names you defined in the header names. As such, the last properties will be blank as there is no data for them. + String[] String[] @@ -6993,9 +7133,9 @@ Boston,2/18/2018,1000 NoHeader - + Automatically generate property names (P1, P2, P3, ..) instead of the ones defined in the column headers of the TopRow. This switch is best used when you want to import the complete worksheet 'as is' and are not concerned with the property names. - + SwitchParameter @@ -7004,9 +7144,9 @@ Boston,2/18/2018,1000 DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter @@ -7015,9 +7155,9 @@ Boston,2/18/2018,1000 ConvertEmptyStringsToNull - + If specified, cells without any data are replaced with NULL, instead of an empty string. This is to address behviors in certain DBMS where an empty string is insert as 0 for INT column, instead of a NULL value. - + SwitchParameter @@ -7026,9 +7166,9 @@ Boston,2/18/2018,1000 UseMSSQLSyntax - - {{ Fill UseMSSQLSyntax Description }} - + + + SwitchParameter @@ -7040,9 +7180,9 @@ Boston,2/18/2018,1000 TableName - + Name of the target database table. - + Object Object @@ -7052,9 +7192,9 @@ Boston,2/18/2018,1000 Path - + Path to an existing .XLSX file This parameter is passed to Import-Excel as is. - + Object Object @@ -7064,9 +7204,9 @@ Boston,2/18/2018,1000 WorkSheetname - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. This parameter is passed to Import-Excel as is. - + Object Object @@ -7076,9 +7216,9 @@ Boston,2/18/2018,1000 StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. When one of both parameters are provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -7088,9 +7228,9 @@ Boston,2/18/2018,1000 Header - - Specifies custom property names to use, instead of the values defined in the column headers of the TopRow. If you provide fewr header names than there is data in the worksheet, then only the data with a corresponding header name will be imported and the data without header name will be disregarded. If you provide more header names than there is data in the worksheet, then all data will be imported and all objects will have all the property names you defined in the header names. As such, the last properties will be blank as there is no data for them. - + + Specifies custom property names to use, instead of the values defined in the column headers of the TopRow. If you provide fewer header names than there is data in the worksheet, then only the data with a corresponding header name will be imported and the data without header name will be disregarded. If you provide more header names than there is data in the worksheet, then all data will be imported and all objects will have all the property names you defined in the header names. As such, the last properties will be blank as there is no data for them. + String[] String[] @@ -7100,9 +7240,9 @@ Boston,2/18/2018,1000 NoHeader - + Automatically generate property names (P1, P2, P3, ..) instead of the ones defined in the column headers of the TopRow. This switch is best used when you want to import the complete worksheet 'as is' and are not concerned with the property names. - + SwitchParameter SwitchParameter @@ -7112,9 +7252,9 @@ Boston,2/18/2018,1000 DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter SwitchParameter @@ -7124,9 +7264,9 @@ Boston,2/18/2018,1000 ConvertEmptyStringsToNull - + If specified, cells without any data are replaced with NULL, instead of an empty string. This is to address behviors in certain DBMS where an empty string is insert as 0 for INT column, instead of a NULL value. - + SwitchParameter SwitchParameter @@ -7136,9 +7276,9 @@ Boston,2/18/2018,1000 UseMSSQLSyntax - - {{ Fill UseMSSQLSyntax Description }} - + + + SwitchParameter SwitchParameter @@ -7204,9 +7344,14 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 - - - + + + Online Version: + + + + + Copy-ExcelWorkSheet Copy @@ -7223,9 +7368,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Copy-ExcelWorkSheet SourceObject - + An ExcelWorkbook or ExcelPackage object or the path to an XLSx file where the data is found. - + Object Object @@ -7235,9 +7380,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 SourceWorkSheet - + Name or number (starting from 1) of the worksheet in the source workbook (defaults to 1). - + Object Object @@ -7247,9 +7392,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 DestinationWorkbook - + An ExcelWorkbook or ExcelPackage object or the path to an XLSx file where the data should be copied. - + Object Object @@ -7259,9 +7404,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 DestinationWorksheet - + Name of the worksheet in the destination workbook; by default the same as the source worksheet's name. If the sheet exists it will be deleted and re-copied. - + Object Object @@ -7271,9 +7416,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Show - + if the destination is an excel package or a path, launch excel and open the file on completion. - + SwitchParameter @@ -7285,9 +7430,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 SourceObject - + An ExcelWorkbook or ExcelPackage object or the path to an XLSx file where the data is found. - + Object Object @@ -7297,9 +7442,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 SourceWorkSheet - + Name or number (starting from 1) of the worksheet in the source workbook (defaults to 1). - + Object Object @@ -7309,9 +7454,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 DestinationWorkbook - + An ExcelWorkbook or ExcelPackage object or the path to an XLSx file where the data should be copied. - + Object Object @@ -7321,9 +7466,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 DestinationWorksheet - + Name of the worksheet in the destination workbook; by default the same as the source worksheet's name. If the sheet exists it will be deleted and re-copied. - + Object Object @@ -7333,9 +7478,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Show - + if the destination is an excel package or a path, launch excel and open the file on completion. - + SwitchParameter SwitchParameter @@ -7370,18 +7515,23 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 -------------------------- EXAMPLE 3 -------------------------- $excel = Open-ExcelPackage .\test.xlsx - C:\> Copy-ExcelWorkSheet -SourceWorkbook $excel -SourceWorkSheet "first" -DestinationWorkbook $excel -Show -DestinationWorksheet Duplicate This opens the workbook test.xlsx and copies the worksheet named "first" to a new worksheet named "Duplicate", because -Show is specified the file is saved and opened in Excel + C:\&gt; Copy-ExcelWorkSheet -SourceWorkbook $excel -SourceWorkSheet "first" -DestinationWorkbook $excel -Show -DestinationWorksheet Duplicate This opens the workbook test.xlsx and copies the worksheet named "first" to a new worksheet named "Duplicate", because -Show is specified the file is saved and opened in Excel -------------------------- EXAMPLE 4 -------------------------- $excel = Open-ExcelPackage .\test.xlsx - C:\> Copy-ExcelWorkSheet -SourceWorkbook $excel -SourceWorkSheet 1 -DestinationWorkbook $excel -DestinationWorksheet Duplicate C:\> Close-ExcelPackage $excel This is almost the same as the previous example, except source sheet is specified by position rather than name and because -Show is not specified, so other steps can be carried using the package object, at the end the file is saved by Close-ExcelPackage + C:\&gt; Copy-ExcelWorkSheet -SourceWorkbook $excel -SourceWorkSheet 1 -DestinationWorkbook $excel -DestinationWorksheet Duplicate C:\&gt; Close-ExcelPackage $excel This is almost the same as the previous example, except source sheet is specified by position rather than name and because -Show is not specified, so other steps can be carried using the package object, at the end the file is saved by Close-ExcelPackage - + + + Online Version: + + + @@ -7400,9 +7550,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Expand-NumberFormat NumberFormat - + The format string to Expand - + Object Object @@ -7415,9 +7565,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NumberFormat - + The format string to Expand - + Object Object @@ -7456,12 +7606,17 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Returns the currency format specified in the local regional settings, which may not be the same as Excel uses. The regional settings set the currency symbol and then whether it is before or after the number and separated with a space or not; for negative numbers the number may be wrapped in parentheses or a - sign might appear before or after the number and symbol. - So this returns $#,##0.00;($#,##0.00) for English US, #,##0.00 €;€#,##0.00- for French. + So this returns $\#,\#\#0.00;($\#,\#\#0.00) for English US, \#,\#\#0.00 €;€\#,\#\#0.00- for French. Note some Eurozone countries write €1,23 and others 1,23€. In French the decimal point will be rendered as a "," and the thousand separator as a space. - + + + Online Version: + + + @@ -7480,9 +7635,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Export-Excel Path - + Path to a new or existing .XLSX file. - + String String @@ -7490,11 +7645,31 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 None + + TableTotalSettings + + A HashTable in the form of either + - ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> - + + ColumnName = @{ + Function = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> + Comment = $HoverComment + } + + if specified, -ShowTotal is not needed. + + Hashtable + + Hashtable + + + None + InputObject - + Date is usually piped into Export-Excel, but it also accepts data through the InputObject parameter - + Object Object @@ -7504,9 +7679,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Calculate - + If specified, a recalculation of the worksheet will be requested before saving. - + SwitchParameter @@ -7515,9 +7690,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Show - + Opens the Excel file immediately after creation; convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter @@ -7526,9 +7701,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 WorksheetName - + The name of a sheet within the workbook - "Sheet1" by default. - + String String @@ -7538,9 +7713,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Password - + Sets password protection on the workbook. - + String String @@ -7550,10 +7725,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ClearSheet - + If specified Export-Excel will remove any existing worksheet with the selected name. The default behaviour is to overwrite cells in this sheet as needed (but leaving non-overwritten ones in place). - + SwitchParameter @@ -7562,9 +7737,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Append - + If specified data will be added to the end of an existing sheet, using the same column headings. - + SwitchParameter @@ -7573,9 +7748,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Title - + Text of a title to be placed in the top left cell. - + String String @@ -7585,9 +7760,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleFillPattern - + Sets the fill pattern for the title cell. - + None Solid @@ -7618,9 +7793,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleBold - + Sets the title in boldface type. - + SwitchParameter @@ -7629,9 +7804,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -7641,9 +7816,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -7653,9 +7828,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 IncludePivotTable - + Adds a PivotTable using the data in the worksheet. - + SwitchParameter @@ -7664,9 +7839,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTableName - + If a PivotTable is created from command line parameters, specifies the name of the new sheet holding the pivot. Defaults to "WorksheetName-PivotTable". - + String String @@ -7676,9 +7851,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotRows - + Name(s) of column(s) from the spreadsheet which will provide the Row name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -7688,9 +7863,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotColumns - + Name(s) of columns from the spreadsheet which will provide the Column name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -7700,10 +7875,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotData - + In a PivotTable created from command line parameters, the fields to use in the table body are given as a Hash-table in the form - ColumnName = Average|Count|CountNums|Max|Min|Product|None|StdDev|StdDevP|Sum|Var|VarP. - + ColumnName = Average\|Count\|CountNums\|Max\|Min\|Product\|None\|StdDev\|StdDevP\|Sum\|Var\|VarP. + Object Object @@ -7713,9 +7888,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotFilter - + Name(s) columns from the spreadsheet which will provide the Filter name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -7725,9 +7900,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotDataToColumn - + If there are multiple datasets in a PivotTable, by default they are shown as separate rows under the given row heading; this switch makes them separate columns. - + SwitchParameter @@ -7736,10 +7911,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTableDefinition - + Instead of describing a single PivotTable with multiple command-line parameters; you can use a HashTable in the form PivotTableName = Definition; In this table Definition is itself a Hashtable with Sheet, PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values. The New-PivotTableDefinition command will create the definition from a command line. - + Hashtable Hashtable @@ -7749,9 +7924,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 IncludePivotChart - + Include a chart with the PivotTable - implies -IncludePivotTable. - + SwitchParameter @@ -7760,9 +7935,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ChartType - + The type for PivotChart (one of Excel's defined chart types). - + Area Line @@ -7847,9 +8022,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoLegend - + Exclude the legend from the PivotChart. - + SwitchParameter @@ -7858,9 +8033,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ShowCategory - + Add category labels to the PivotChart. - + SwitchParameter @@ -7869,9 +8044,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ShowPercent - + Add percentage labels to the PivotChart. - + SwitchParameter @@ -7880,9 +8055,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoSize - + Sizes the width of the Excel column to the maximum width needed to display all the containing data in that cell. - + SwitchParameter @@ -7891,9 +8066,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MaxAutoSizeRows - + Autosizing can be time consuming, so this sets a maximum number of rows to look at for the Autosize operation. Default is 1000; If 0 is specified ALL rows will be checked - + Object Object @@ -7903,9 +8078,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoClobber - + Not used. Left in to avoid problems with older scripts, it may be removed in future versions. - + SwitchParameter @@ -7914,9 +8089,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter @@ -7925,9 +8100,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter @@ -7936,9 +8111,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter @@ -7947,9 +8122,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezePane - - Freezes panes at specified coordinates (in the form RowNumber, ColumnNumber). - + + Freezes panes at specified coordinates (in the form RowNumber, ColumnNumber). + Int32[] Int32[] @@ -7959,9 +8134,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoFilter - + Enables the Excel filter on the complete header row, so users can easily sort, filter and/or search the data in the selected column. - + SwitchParameter @@ -7970,9 +8145,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 BoldTopRow - + Makes the top row boldface. - + SwitchParameter @@ -7981,9 +8156,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoHeader - + Specifies that field names should not be put at the top of columns. - + SwitchParameter @@ -7992,9 +8167,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 RangeName - + Makes the data in the worksheet a named range. - + String String @@ -8004,9 +8179,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TableName - + Makes the data in the worksheet a table with a name, and applies a style to it. The name must not contain spaces. If the -Tablestyle parameter is specified without Tablename, "table1", "table2" etc. will be used. - + Object Object @@ -8016,9 +8191,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TableStyle - - Selects the style for the named table - if the Tablename parameter is specified without giving a style, 'Medium6' is used as a default. - + + Selects the style for the named table - if the Tablename parameter is specified without giving a style, 'Medium6' is used as a default. + None Custom @@ -8092,9 +8267,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Barchart - + Creates a "quick" bar chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -8103,9 +8278,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PieChart - + Creates a "quick" pie chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -8114,9 +8289,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 LineChart - + Creates a "quick" line chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -8125,9 +8300,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ColumnChart - + Creates a "quick" column chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -8136,9 +8311,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ExcelChartDefinition - - A hash-table containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-Pivot] charts. This can be created with the New-ExcelChartDefinition command. - + + A hash-table containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-Pivot] charts. This can be created with the New-ExcelChartDefinition command. + Object[] Object[] @@ -8148,9 +8323,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 HideSheet - + Name(s) of Sheet(s) to hide in the workbook, supports wildcards. If the selection would cause all sheets to be hidden, the sheet being worked on will be revealed. - + String[] String[] @@ -8160,9 +8335,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 UnHideSheet - + Name(s) of Sheet(s) to reveal in the workbook, supports wildcards. - + String[] String[] @@ -8172,10 +8347,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveToStart - + If specified, the worksheet will be moved to the start of the workbook. -MoveToStart takes precedence over -MoveToEnd, -Movebefore and -MoveAfter if more than one is specified. - + SwitchParameter @@ -8184,9 +8359,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveToEnd - + If specified, the worksheet will be moved to the end of the workbook. (This is the default position for newly created sheets, but the option can be specified to move existing sheets.) - + SwitchParameter @@ -8195,10 +8370,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveBefore - + If specified, the worksheet will be moved before the nominated one (which can be a position starting from 1, or a name). -MoveBefore takes precedence over -MoveAfter if both are specified. - + Object Object @@ -8208,10 +8383,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveAfter - + If specified, the worksheet will be moved after the nominated one (which can be a position starting from 1, or a name or *). If * is used, the worksheet names will be examined starting with the first one, and the sheet placed after the last sheet which comes before it alphabetically. - + Object Object @@ -8221,9 +8396,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 KillExcel - + Closes Excel without stopping to ask if work should be saved - prevents errors writing to the file because Excel has it open. - + SwitchParameter @@ -8232,9 +8407,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoNameRange - + Makes each column a named range. - + SwitchParameter @@ -8243,9 +8418,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 StartRow - + Row to start adding data. 1 by default. Row 1 will contain the title, if any is specifed. Then headers will appear (Unless -No header is specified) then the data appears. - + Int32 Int32 @@ -8255,9 +8430,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 StartColumn - + Column to start adding data - 1 by default. - + Int32 Int32 @@ -8267,9 +8442,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PassThru - + If specified, Export-Excel returns an object representing the Excel package without saving the package first. To save, you must either use the Close-ExcelPackage command, or send the package object back to Export-Excel which will save and close the file, or use the object's .Save() or SaveAs() method. - + SwitchParameter @@ -8278,7 +8453,7 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Numberformat - + Formats all values that can be converted to a number to the format specified. For examples: '0' integer (not really needed unless you need to round numbers, Excel will use default cell properties). @@ -8290,7 +8465,7 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 '0%' number with 2 decimal places and thousand-separator and money-symbol. '[Blue]$#,##0.00;[Red]-$#,##0.00' blue for positive numbers and red for negative numbers; Both proceeded by a '$' sign - + String String @@ -8300,9 +8475,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ExcludeProperty - + Specifies properties which may exist in the target data but should not be placed on the worksheet. - + String[] String[] @@ -8312,9 +8487,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoAliasOrScriptPropeties - + Some objects in PowerShell duplicate existing properties by adding aliases, or have Script properties which may take a long time to return a value and slow the export down, if specified this option removes these properties - + SwitchParameter @@ -8323,9 +8498,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 DisplayPropertySet - + Many (but not all) objects in PowerShell have a hidden property named psStandardmembers with a child property DefaultDisplayPropertySet ; this parameter reduces the properties exported to those in this set. - + SwitchParameter @@ -8334,10 +8509,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoNumberConversion - + By default the command will convert all values to numbers if possible, but this isn't always desirable. -NoNumberConversion allows you to add exceptions for the conversion. The only Wildcard allowed is * for all properties - + String[] String[] @@ -8347,9 +8522,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -8359,9 +8534,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. When specific conditions are met the format is applied. - + Object[] Object[] @@ -8371,9 +8546,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Style - + Takes style settings as a hash-table (which may be built with the New-ExcelStyle command) and applies them to the worksheet. If the hash-table contains a range the settings apply to the range, otherewise they apply to the whole sheet. - + Object[] Object[] @@ -8383,9 +8558,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 CellStyleSB - + A script block which is run at the end of the export to apply styles to cells (although it can be used for other purposes). The script block is given three paramaters; an object containing the current worksheet, the Total number of Rows and the number of the last column. - + ScriptBlock ScriptBlock @@ -8395,9 +8570,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Activate - + If there is already content in the workbook, a new sheet will not be active UNLESS Activate is specified; when a PivotTable is created its sheet will be activated by this switch. - + SwitchParameter @@ -8406,9 +8581,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Now - + The -Now switch is a shortcut that automatically creates a temporary file, enables "AutoSize", "TableName" and "Show", and opens the file immediately. - + SwitchParameter @@ -8417,9 +8592,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ReturnRange - + If specified, Export-Excel returns the range of added cells in the format "A1:Z100". - + SwitchParameter @@ -8428,9 +8603,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTotals - + By default, PivotTables have totals for each row (on the right) and for each column at the bottom. This allows just one or neither to be selected. - + String String @@ -8440,9 +8615,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoTotalsInPivot - + In a PivotTable created from command line parameters, prevents the addition of totals to rows and columns. - + SwitchParameter @@ -8451,9 +8626,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ReZip - + If specified, Export-Excel will expand the contents of the .XLSX file (which is multiple files in a zip archive) and rebuild it. - + SwitchParameter @@ -8463,11 +8638,31 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Export-Excel + + TableTotalSettings + + A HashTable in the form of either + - ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> - + + ColumnName = @{ + Function = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> + Comment = $HoverComment + } + + if specified, -ShowTotal is not needed. + + Hashtable + + Hashtable + + + None + ExcelPackage - + An object representing an Excel Package - usually this is returned by specifying -PassThru allowing multiple commands to work on the same workbook without saving and reloading each time. - + ExcelPackage ExcelPackage @@ -8477,9 +8672,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 InputObject - + Date is usually piped into Export-Excel, but it also accepts data through the InputObject parameter - + Object Object @@ -8489,9 +8684,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Calculate - + If specified, a recalculation of the worksheet will be requested before saving. - + SwitchParameter @@ -8500,9 +8695,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Show - + Opens the Excel file immediately after creation; convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter @@ -8511,9 +8706,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 WorksheetName - + The name of a sheet within the workbook - "Sheet1" by default. - + String String @@ -8523,9 +8718,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Password - + Sets password protection on the workbook. - + String String @@ -8535,10 +8730,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ClearSheet - + If specified Export-Excel will remove any existing worksheet with the selected name. The default behaviour is to overwrite cells in this sheet as needed (but leaving non-overwritten ones in place). - + SwitchParameter @@ -8547,9 +8742,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Append - + If specified data will be added to the end of an existing sheet, using the same column headings. - + SwitchParameter @@ -8558,9 +8753,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Title - + Text of a title to be placed in the top left cell. - + String String @@ -8570,9 +8765,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleFillPattern - + Sets the fill pattern for the title cell. - + None Solid @@ -8603,9 +8798,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleBold - + Sets the title in boldface type. - + SwitchParameter @@ -8614,9 +8809,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -8626,9 +8821,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -8638,9 +8833,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 IncludePivotTable - + Adds a PivotTable using the data in the worksheet. - + SwitchParameter @@ -8649,9 +8844,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTableName - + If a PivotTable is created from command line parameters, specifies the name of the new sheet holding the pivot. Defaults to "WorksheetName-PivotTable". - + String String @@ -8661,9 +8856,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotRows - + Name(s) of column(s) from the spreadsheet which will provide the Row name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -8673,9 +8868,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotColumns - + Name(s) of columns from the spreadsheet which will provide the Column name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -8685,10 +8880,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotData - + In a PivotTable created from command line parameters, the fields to use in the table body are given as a Hash-table in the form - ColumnName = Average|Count|CountNums|Max|Min|Product|None|StdDev|StdDevP|Sum|Var|VarP. - + ColumnName = Average\|Count\|CountNums\|Max\|Min\|Product\|None\|StdDev\|StdDevP\|Sum\|Var\|VarP. + Object Object @@ -8698,9 +8893,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotFilter - + Name(s) columns from the spreadsheet which will provide the Filter name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -8710,9 +8905,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotDataToColumn - + If there are multiple datasets in a PivotTable, by default they are shown as separate rows under the given row heading; this switch makes them separate columns. - + SwitchParameter @@ -8721,10 +8916,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTableDefinition - + Instead of describing a single PivotTable with multiple command-line parameters; you can use a HashTable in the form PivotTableName = Definition; In this table Definition is itself a Hashtable with Sheet, PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values. The New-PivotTableDefinition command will create the definition from a command line. - + Hashtable Hashtable @@ -8734,9 +8929,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 IncludePivotChart - + Include a chart with the PivotTable - implies -IncludePivotTable. - + SwitchParameter @@ -8745,9 +8940,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ChartType - + The type for PivotChart (one of Excel's defined chart types). - + Area Line @@ -8832,9 +9027,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoLegend - + Exclude the legend from the PivotChart. - + SwitchParameter @@ -8843,9 +9038,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ShowCategory - + Add category labels to the PivotChart. - + SwitchParameter @@ -8854,9 +9049,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ShowPercent - + Add percentage labels to the PivotChart. - + SwitchParameter @@ -8865,9 +9060,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoSize - + Sizes the width of the Excel column to the maximum width needed to display all the containing data in that cell. - + SwitchParameter @@ -8876,9 +9071,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MaxAutoSizeRows - + Autosizing can be time consuming, so this sets a maximum number of rows to look at for the Autosize operation. Default is 1000; If 0 is specified ALL rows will be checked - + Object Object @@ -8888,9 +9083,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoClobber - + Not used. Left in to avoid problems with older scripts, it may be removed in future versions. - + SwitchParameter @@ -8899,9 +9094,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter @@ -8910,9 +9105,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter @@ -8921,9 +9116,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter @@ -8932,9 +9127,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezePane - - Freezes panes at specified coordinates (in the form RowNumber, ColumnNumber). - + + Freezes panes at specified coordinates (in the form RowNumber, ColumnNumber). + Int32[] Int32[] @@ -8944,9 +9139,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoFilter - + Enables the Excel filter on the complete header row, so users can easily sort, filter and/or search the data in the selected column. - + SwitchParameter @@ -8955,9 +9150,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 BoldTopRow - + Makes the top row boldface. - + SwitchParameter @@ -8966,9 +9161,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoHeader - + Specifies that field names should not be put at the top of columns. - + SwitchParameter @@ -8977,9 +9172,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 RangeName - + Makes the data in the worksheet a named range. - + String String @@ -8989,9 +9184,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TableName - + Makes the data in the worksheet a table with a name, and applies a style to it. The name must not contain spaces. If the -Tablestyle parameter is specified without Tablename, "table1", "table2" etc. will be used. - + Object Object @@ -9001,9 +9196,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TableStyle - - Selects the style for the named table - if the Tablename parameter is specified without giving a style, 'Medium6' is used as a default. - + + Selects the style for the named table - if the Tablename parameter is specified without giving a style, 'Medium6' is used as a default. + None Custom @@ -9077,9 +9272,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Barchart - + Creates a "quick" bar chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -9088,9 +9283,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PieChart - + Creates a "quick" pie chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -9099,9 +9294,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 LineChart - + Creates a "quick" line chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -9110,9 +9305,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ColumnChart - + Creates a "quick" column chart using the first text column as labels and the first numeric column as values. - + SwitchParameter @@ -9121,9 +9316,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ExcelChartDefinition - - A hash-table containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-Pivot] charts. This can be created with the New-ExcelChartDefinition command. - + + A hash-table containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-Pivot] charts. This can be created with the New-ExcelChartDefinition command. + Object[] Object[] @@ -9133,9 +9328,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 HideSheet - + Name(s) of Sheet(s) to hide in the workbook, supports wildcards. If the selection would cause all sheets to be hidden, the sheet being worked on will be revealed. - + String[] String[] @@ -9145,9 +9340,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 UnHideSheet - + Name(s) of Sheet(s) to reveal in the workbook, supports wildcards. - + String[] String[] @@ -9157,10 +9352,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveToStart - + If specified, the worksheet will be moved to the start of the workbook. -MoveToStart takes precedence over -MoveToEnd, -Movebefore and -MoveAfter if more than one is specified. - + SwitchParameter @@ -9169,9 +9364,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveToEnd - + If specified, the worksheet will be moved to the end of the workbook. (This is the default position for newly created sheets, but the option can be specified to move existing sheets.) - + SwitchParameter @@ -9180,10 +9375,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveBefore - + If specified, the worksheet will be moved before the nominated one (which can be a position starting from 1, or a name). -MoveBefore takes precedence over -MoveAfter if both are specified. - + Object Object @@ -9193,10 +9388,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveAfter - + If specified, the worksheet will be moved after the nominated one (which can be a position starting from 1, or a name or *). If * is used, the worksheet names will be examined starting with the first one, and the sheet placed after the last sheet which comes before it alphabetically. - + Object Object @@ -9206,9 +9401,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 KillExcel - + Closes Excel without stopping to ask if work should be saved - prevents errors writing to the file because Excel has it open. - + SwitchParameter @@ -9217,9 +9412,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoNameRange - + Makes each column a named range. - + SwitchParameter @@ -9228,9 +9423,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 StartRow - + Row to start adding data. 1 by default. Row 1 will contain the title, if any is specifed. Then headers will appear (Unless -No header is specified) then the data appears. - + Int32 Int32 @@ -9240,9 +9435,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 StartColumn - + Column to start adding data - 1 by default. - + Int32 Int32 @@ -9252,9 +9447,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PassThru - + If specified, Export-Excel returns an object representing the Excel package without saving the package first. To save, you must either use the Close-ExcelPackage command, or send the package object back to Export-Excel which will save and close the file, or use the object's .Save() or SaveAs() method. - + SwitchParameter @@ -9263,7 +9458,7 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Numberformat - + Formats all values that can be converted to a number to the format specified. For examples: '0' integer (not really needed unless you need to round numbers, Excel will use default cell properties). @@ -9275,7 +9470,7 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 '0%' number with 2 decimal places and thousand-separator and money-symbol. '[Blue]$#,##0.00;[Red]-$#,##0.00' blue for positive numbers and red for negative numbers; Both proceeded by a '$' sign - + String String @@ -9285,9 +9480,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ExcludeProperty - + Specifies properties which may exist in the target data but should not be placed on the worksheet. - + String[] String[] @@ -9297,9 +9492,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoAliasOrScriptPropeties - + Some objects in PowerShell duplicate existing properties by adding aliases, or have Script properties which may take a long time to return a value and slow the export down, if specified this option removes these properties - + SwitchParameter @@ -9308,9 +9503,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 DisplayPropertySet - + Many (but not all) objects in PowerShell have a hidden property named psStandardmembers with a child property DefaultDisplayPropertySet ; this parameter reduces the properties exported to those in this set. - + SwitchParameter @@ -9319,10 +9514,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoNumberConversion - + By default the command will convert all values to numbers if possible, but this isn't always desirable. -NoNumberConversion allows you to add exceptions for the conversion. The only Wildcard allowed is * for all properties - + String[] String[] @@ -9332,9 +9527,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -9344,9 +9539,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. When specific conditions are met the format is applied. - + Object[] Object[] @@ -9356,9 +9551,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Style - + Takes style settings as a hash-table (which may be built with the New-ExcelStyle command) and applies them to the worksheet. If the hash-table contains a range the settings apply to the range, otherewise they apply to the whole sheet. - + Object[] Object[] @@ -9368,9 +9563,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 CellStyleSB - + A script block which is run at the end of the export to apply styles to cells (although it can be used for other purposes). The script block is given three paramaters; an object containing the current worksheet, the Total number of Rows and the number of the last column. - + ScriptBlock ScriptBlock @@ -9380,9 +9575,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Activate - + If there is already content in the workbook, a new sheet will not be active UNLESS Activate is specified; when a PivotTable is created its sheet will be activated by this switch. - + SwitchParameter @@ -9391,9 +9586,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ReturnRange - + If specified, Export-Excel returns the range of added cells in the format "A1:Z100". - + SwitchParameter @@ -9402,9 +9597,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTotals - + By default, PivotTables have totals for each row (on the right) and for each column at the bottom. This allows just one or neither to be selected. - + String String @@ -9414,9 +9609,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoTotalsInPivot - + In a PivotTable created from command line parameters, prevents the addition of totals to rows and columns. - + SwitchParameter @@ -9425,9 +9620,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ReZip - + If specified, Export-Excel will expand the contents of the .XLSX file (which is multiple files in a zip archive) and rebuild it. - + SwitchParameter @@ -9439,9 +9634,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Path - + Path to a new or existing .XLSX file. - + String String @@ -9451,9 +9646,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ExcelPackage - + An object representing an Excel Package - usually this is returned by specifying -PassThru allowing multiple commands to work on the same workbook without saving and reloading each time. - + ExcelPackage ExcelPackage @@ -9463,9 +9658,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 InputObject - + Date is usually piped into Export-Excel, but it also accepts data through the InputObject parameter - + Object Object @@ -9475,9 +9670,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Calculate - + If specified, a recalculation of the worksheet will be requested before saving. - + SwitchParameter SwitchParameter @@ -9487,9 +9682,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Show - + Opens the Excel file immediately after creation; convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter SwitchParameter @@ -9499,9 +9694,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 WorksheetName - + The name of a sheet within the workbook - "Sheet1" by default. - + String String @@ -9511,9 +9706,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Password - + Sets password protection on the workbook. - + String String @@ -9523,10 +9718,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ClearSheet - + If specified Export-Excel will remove any existing worksheet with the selected name. The default behaviour is to overwrite cells in this sheet as needed (but leaving non-overwritten ones in place). - + SwitchParameter SwitchParameter @@ -9536,9 +9731,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Append - + If specified data will be added to the end of an existing sheet, using the same column headings. - + SwitchParameter SwitchParameter @@ -9548,9 +9743,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Title - + Text of a title to be placed in the top left cell. - + String String @@ -9560,9 +9755,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleFillPattern - + Sets the fill pattern for the title cell. - + ExcelFillStyle ExcelFillStyle @@ -9572,9 +9767,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleBold - + Sets the title in boldface type. - + SwitchParameter SwitchParameter @@ -9584,9 +9779,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -9596,9 +9791,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -9608,9 +9803,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 IncludePivotTable - + Adds a PivotTable using the data in the worksheet. - + SwitchParameter SwitchParameter @@ -9620,9 +9815,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTableName - + If a PivotTable is created from command line parameters, specifies the name of the new sheet holding the pivot. Defaults to "WorksheetName-PivotTable". - + String String @@ -9632,9 +9827,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotRows - + Name(s) of column(s) from the spreadsheet which will provide the Row name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -9644,9 +9839,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotColumns - + Name(s) of columns from the spreadsheet which will provide the Column name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -9656,10 +9851,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotData - + In a PivotTable created from command line parameters, the fields to use in the table body are given as a Hash-table in the form - ColumnName = Average|Count|CountNums|Max|Min|Product|None|StdDev|StdDevP|Sum|Var|VarP. - + ColumnName = Average\|Count\|CountNums\|Max\|Min\|Product\|None\|StdDev\|StdDevP\|Sum\|Var\|VarP. + Object Object @@ -9669,9 +9864,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotFilter - + Name(s) columns from the spreadsheet which will provide the Filter name(s) in a PivotTable created from command line parameters. - + String[] String[] @@ -9681,9 +9876,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotDataToColumn - + If there are multiple datasets in a PivotTable, by default they are shown as separate rows under the given row heading; this switch makes them separate columns. - + SwitchParameter SwitchParameter @@ -9693,10 +9888,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTableDefinition - + Instead of describing a single PivotTable with multiple command-line parameters; you can use a HashTable in the form PivotTableName = Definition; In this table Definition is itself a Hashtable with Sheet, PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values. The New-PivotTableDefinition command will create the definition from a command line. - + Hashtable Hashtable @@ -9706,9 +9901,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 IncludePivotChart - + Include a chart with the PivotTable - implies -IncludePivotTable. - + SwitchParameter SwitchParameter @@ -9718,9 +9913,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ChartType - + The type for PivotChart (one of Excel's defined chart types). - + eChartType eChartType @@ -9730,9 +9925,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoLegend - + Exclude the legend from the PivotChart. - + SwitchParameter SwitchParameter @@ -9742,9 +9937,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ShowCategory - + Add category labels to the PivotChart. - + SwitchParameter SwitchParameter @@ -9754,9 +9949,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ShowPercent - + Add percentage labels to the PivotChart. - + SwitchParameter SwitchParameter @@ -9766,9 +9961,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoSize - + Sizes the width of the Excel column to the maximum width needed to display all the containing data in that cell. - + SwitchParameter SwitchParameter @@ -9778,9 +9973,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MaxAutoSizeRows - + Autosizing can be time consuming, so this sets a maximum number of rows to look at for the Autosize operation. Default is 1000; If 0 is specified ALL rows will be checked - + Object Object @@ -9790,9 +9985,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoClobber - + Not used. Left in to avoid problems with older scripts, it may be removed in future versions. - + SwitchParameter SwitchParameter @@ -9802,9 +9997,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter SwitchParameter @@ -9814,9 +10009,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter SwitchParameter @@ -9826,9 +10021,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter SwitchParameter @@ -9838,9 +10033,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 FreezePane - - Freezes panes at specified coordinates (in the form RowNumber, ColumnNumber). - + + Freezes panes at specified coordinates (in the form RowNumber, ColumnNumber). + Int32[] Int32[] @@ -9850,9 +10045,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoFilter - + Enables the Excel filter on the complete header row, so users can easily sort, filter and/or search the data in the selected column. - + SwitchParameter SwitchParameter @@ -9862,9 +10057,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 BoldTopRow - + Makes the top row boldface. - + SwitchParameter SwitchParameter @@ -9874,9 +10069,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoHeader - + Specifies that field names should not be put at the top of columns. - + SwitchParameter SwitchParameter @@ -9886,9 +10081,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 RangeName - + Makes the data in the worksheet a named range. - + String String @@ -9898,9 +10093,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TableName - + Makes the data in the worksheet a table with a name, and applies a style to it. The name must not contain spaces. If the -Tablestyle parameter is specified without Tablename, "table1", "table2" etc. will be used. - + Object Object @@ -9910,9 +10105,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 TableStyle - - Selects the style for the named table - if the Tablename parameter is specified without giving a style, 'Medium6' is used as a default. - + + Selects the style for the named table - if the Tablename parameter is specified without giving a style, 'Medium6' is used as a default. + TableStyles TableStyles @@ -9920,11 +10115,31 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Medium6 + + TableTotalSettings + + A HashTable in the form of either + - ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> - + + ColumnName = @{ + Function = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|<Custom Excel function starting with "="> + Comment = $HoverComment + } + + if specified, -ShowTotal is not needed. + + Hashtable + + Hashtable + + + None + Barchart - + Creates a "quick" bar chart using the first text column as labels and the first numeric column as values. - + SwitchParameter SwitchParameter @@ -9934,9 +10149,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PieChart - + Creates a "quick" pie chart using the first text column as labels and the first numeric column as values. - + SwitchParameter SwitchParameter @@ -9946,9 +10161,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 LineChart - + Creates a "quick" line chart using the first text column as labels and the first numeric column as values. - + SwitchParameter SwitchParameter @@ -9958,9 +10173,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ColumnChart - + Creates a "quick" column chart using the first text column as labels and the first numeric column as values. - + SwitchParameter SwitchParameter @@ -9970,9 +10185,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ExcelChartDefinition - - A hash-table containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-Pivot] charts. This can be created with the New-ExcelChartDefinition command. - + + A hash-table containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-Pivot] charts. This can be created with the New-ExcelChartDefinition command. + Object[] Object[] @@ -9982,9 +10197,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 HideSheet - + Name(s) of Sheet(s) to hide in the workbook, supports wildcards. If the selection would cause all sheets to be hidden, the sheet being worked on will be revealed. - + String[] String[] @@ -9994,9 +10209,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 UnHideSheet - + Name(s) of Sheet(s) to reveal in the workbook, supports wildcards. - + String[] String[] @@ -10006,10 +10221,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveToStart - + If specified, the worksheet will be moved to the start of the workbook. -MoveToStart takes precedence over -MoveToEnd, -Movebefore and -MoveAfter if more than one is specified. - + SwitchParameter SwitchParameter @@ -10019,9 +10234,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveToEnd - + If specified, the worksheet will be moved to the end of the workbook. (This is the default position for newly created sheets, but the option can be specified to move existing sheets.) - + SwitchParameter SwitchParameter @@ -10031,10 +10246,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveBefore - + If specified, the worksheet will be moved before the nominated one (which can be a position starting from 1, or a name). -MoveBefore takes precedence over -MoveAfter if both are specified. - + Object Object @@ -10044,10 +10259,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 MoveAfter - + If specified, the worksheet will be moved after the nominated one (which can be a position starting from 1, or a name or *). If * is used, the worksheet names will be examined starting with the first one, and the sheet placed after the last sheet which comes before it alphabetically. - + Object Object @@ -10057,9 +10272,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 KillExcel - + Closes Excel without stopping to ask if work should be saved - prevents errors writing to the file because Excel has it open. - + SwitchParameter SwitchParameter @@ -10069,9 +10284,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 AutoNameRange - + Makes each column a named range. - + SwitchParameter SwitchParameter @@ -10081,9 +10296,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 StartRow - + Row to start adding data. 1 by default. Row 1 will contain the title, if any is specifed. Then headers will appear (Unless -No header is specified) then the data appears. - + Int32 Int32 @@ -10093,9 +10308,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 StartColumn - + Column to start adding data - 1 by default. - + Int32 Int32 @@ -10105,9 +10320,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PassThru - + If specified, Export-Excel returns an object representing the Excel package without saving the package first. To save, you must either use the Close-ExcelPackage command, or send the package object back to Export-Excel which will save and close the file, or use the object's .Save() or SaveAs() method. - + SwitchParameter SwitchParameter @@ -10117,7 +10332,7 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Numberformat - + Formats all values that can be converted to a number to the format specified. For examples: '0' integer (not really needed unless you need to round numbers, Excel will use default cell properties). @@ -10129,7 +10344,7 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 '0%' number with 2 decimal places and thousand-separator and money-symbol. '[Blue]$#,##0.00;[Red]-$#,##0.00' blue for positive numbers and red for negative numbers; Both proceeded by a '$' sign - + String String @@ -10139,9 +10354,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ExcludeProperty - + Specifies properties which may exist in the target data but should not be placed on the worksheet. - + String[] String[] @@ -10151,9 +10366,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoAliasOrScriptPropeties - + Some objects in PowerShell duplicate existing properties by adding aliases, or have Script properties which may take a long time to return a value and slow the export down, if specified this option removes these properties - + SwitchParameter SwitchParameter @@ -10163,9 +10378,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 DisplayPropertySet - + Many (but not all) objects in PowerShell have a hidden property named psStandardmembers with a child property DefaultDisplayPropertySet ; this parameter reduces the properties exported to those in this set. - + SwitchParameter SwitchParameter @@ -10175,10 +10390,10 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoNumberConversion - + By default the command will convert all values to numbers if possible, but this isn't always desirable. -NoNumberConversion allows you to add exceptions for the conversion. The only Wildcard allowed is * for all properties - + String[] String[] @@ -10188,9 +10403,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -10200,9 +10415,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. When specific conditions are met the format is applied. - + Object[] Object[] @@ -10212,9 +10427,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Style - + Takes style settings as a hash-table (which may be built with the New-ExcelStyle command) and applies them to the worksheet. If the hash-table contains a range the settings apply to the range, otherewise they apply to the whole sheet. - + Object[] Object[] @@ -10224,9 +10439,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 CellStyleSB - + A script block which is run at the end of the export to apply styles to cells (although it can be used for other purposes). The script block is given three paramaters; an object containing the current worksheet, the Total number of Rows and the number of the last column. - + ScriptBlock ScriptBlock @@ -10236,9 +10451,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Activate - + If there is already content in the workbook, a new sheet will not be active UNLESS Activate is specified; when a PivotTable is created its sheet will be activated by this switch. - + SwitchParameter SwitchParameter @@ -10248,9 +10463,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 Now - + The -Now switch is a shortcut that automatically creates a temporary file, enables "AutoSize", "TableName" and "Show", and opens the file immediately. - + SwitchParameter SwitchParameter @@ -10260,9 +10475,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ReturnRange - + If specified, Export-Excel returns the range of added cells in the format "A1:Z100". - + SwitchParameter SwitchParameter @@ -10272,9 +10487,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 PivotTotals - + By default, PivotTables have totals for each row (on the right) and for each column at the bottom. This allows just one or neither to be selected. - + String String @@ -10284,9 +10499,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 NoTotalsInPivot - + In a PivotTable created from command line parameters, prevents the addition of totals to rows and columns. - + SwitchParameter SwitchParameter @@ -10296,9 +10511,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012 ReZip - + If specified, Export-Excel will expand the contents of the .XLSX file (which is multiple files in a zip archive) and rebuild it. - + SwitchParameter SwitchParameter @@ -10397,7 +10612,7 @@ PS\> [PSCustOmobject][Ordered]@{ PhoneNr3 = '+3244444444' } | Export-Excel @ExcelParams -NoNumberConversion * - Exports all data to the Excel file 'Excel.xslx' as is, no number conversion will take place. This means that Excel will show the exact same data that you handed over to the 'Export-Excel' function. + Exports all data to the Excel file 'Excel.xslx' as is, no number conversion will take place. This means that Excel will show the exact same data that you handed over to the 'Export-Excel' function. @@ -10438,6 +10653,27 @@ PS\> Get-Service | Select-Object -Property Name, Status, DisplayName, Service -------------------------- EXAMPLE 7 -------------------------- + PS\> $r = Get-ChildItem C:\WINDOWS\system32 -File + +PS\> $TotalSettings = @{ + Name = "Count" + Extension = "=COUNTIF([Extension];`".exe`")" + Length = @{ + Function = "=SUMIF([Extension];`".exe`";[Length])" + Comment = "Sum of all exe sizes" + } + } + +PS\> $r | Export-Excel -TableName system32files -TableStyle Medium10 -TableTotalSettings $TotalSettings -Show + + Exports a list of files with a totals row with three calculated totals: + - Total count of names + - Count of files with the extension ".exe" + - Total size of all file with extension ".exe" and add a comment as to not be mistaken that is is the total size of all files + + + + -------------------------- EXAMPLE 8 -------------------------- PS\> $ExcelParams = @{ Path = $env:TEMP + '\Excel.xlsx' Show = $true @@ -10471,28 +10707,28 @@ PS\> $Array | Update-FirstObjectProperties | Export-Excel @ExcelParams -Works - -------------------------- EXAMPLE 8 -------------------------- + -------------------------- EXAMPLE 9 -------------------------- PS\> Get-Process | Export-Excel .\test.xlsx -WorksheetName Processes -IncludePivotTable -Show -PivotRows Company -PivotData PM - -------------------------- EXAMPLE 9 -------------------------- + -------------------------- EXAMPLE 10 -------------------------- PS\> Get-Process | Export-Excel .\test.xlsx -WorksheetName Processes -ChartType PieExploded3D -IncludePivotChart -IncludePivotTable -Show -PivotRows Company -PivotData PM - -------------------------- EXAMPLE 10 -------------------------- + -------------------------- EXAMPLE 11 -------------------------- PS\> Get-Service | Export-Excel 'c:\temp\test.xlsx' -Show -IncludePivotTable -PivotRows status -PivotData @{status='count'} - -------------------------- EXAMPLE 11 -------------------------- + -------------------------- EXAMPLE 12 -------------------------- PS\> $pt = [ordered]@{} PS\> $pt.pt1=@{ SourceWorkSheet = 'Sheet1'; @@ -10519,7 +10755,7 @@ PS\> Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show - -------------------------- EXAMPLE 12 -------------------------- + -------------------------- EXAMPLE 13 -------------------------- PS\> Remove-Item -Path .\test.xlsx PS\> $excel = Get-Service | Select-Object -Property Status,Name,DisplayName,StartType | Export-Excel -Path .\test.xlsx -PassThru PS\> $excel.Workbook.Worksheets ["Sheet1"].Row(1).style.font.bold = $true @@ -10536,7 +10772,7 @@ PS\> Start-Process .\test.xlsx - -------------------------- EXAMPLE 13 -------------------------- + -------------------------- EXAMPLE 14 -------------------------- PS\> Remove-Item -Path .\test.xlsx -ErrorAction Ignore PS\> $excel = Get-Process | Select-Object -Property Name,Company,Handles,CPU,PM,NPM,WS | Export-Excel -Path .\test.xlsx -ClearSheet -WorksheetName "Processes" -PassThru @@ -10557,7 +10793,7 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv - -------------------------- EXAMPLE 14 -------------------------- + -------------------------- EXAMPLE 15 -------------------------- PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{X=$_; Sinx="=Sin(Radians(x)) "} } | Export-Excel -now -LineChart -AutoNameRange @@ -10565,7 +10801,7 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv - -------------------------- EXAMPLE 15 -------------------------- + -------------------------- EXAMPLE 16 -------------------------- PS\> Invoke-Sqlcmd -ServerInstance localhost\DEFAULT -Database AdventureWorks2014 -Query "select * from sys.tables" -OutputAs DataRows | Export-Excel -Path .\SysTables_AdventureWorks2014.xlsx -WorksheetName Tables @@ -10575,6 +10811,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv + + Online Version: + + https://github.com/dfinke/ImportExcel https://github.com/dfinke/ImportExcel @@ -10598,9 +10838,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Get-ExcelSheetInfo Path - + Specifies the path to the Excel file. (This parameter is required.) - + Object Object @@ -10613,9 +10853,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Path - + Specifies the path to the Excel file. (This parameter is required.) - + Object Object @@ -10628,7 +10868,7 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv - CHANGELOG 2016/01/07 Added Created by Johan Akerstrom (https://github.com/CosmosKey) + CHANGELOG 2016/01/07 Added Created by Johan Akerstrom ( https://github.com/CosmosKey (https://github.com/CosmosKey)\) @@ -10641,6 +10881,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv + + Online Version: + + https://github.com/dfinke/ImportExcel https://github.com/dfinke/ImportExcel @@ -10664,9 +10908,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Get-ExcelWorkbookInfo Path - + Specifies the path to the Excel file. This parameter is required. - + String String @@ -10679,9 +10923,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Path - + Specifies the path to the Excel file. This parameter is required. - + String String @@ -10694,7 +10938,7 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv - CHANGELOG 2016/01/07 Added Created by Johan Akerstrom (https://github.com/CosmosKey) + CHANGELOG 2016/01/07 Added Created by Johan Akerstrom ( https://github.com/CosmosKey (https://github.com/CosmosKey)\) @@ -10702,11 +10946,15 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv -------------------------- EXAMPLE 1 -------------------------- Get-ExcelWorkbookInfo .\Test.xlsx - CorePropertiesXml : #document Title : Subject : Author : Konica Minolta User Comments : Keywords : LastModifiedBy : Bond, James (London) GBR LastPrinted : 2017-01-21T12:36:11Z Created : 17/01/2017 13:51:32 Category : Status : ExtendedPropertiesXml : #document Application : Microsoft Excel HyperlinkBase : AppVersion : 14.0300 Company : Secret Service Manager : Modified : 10/02/2017 12:45:37 CustomPropertiesXml : #document + CorePropertiesXml : \#document Title : Subject : Author : Konica Minolta User Comments : Keywords : LastModifiedBy : Bond, James (London) GBR LastPrinted : 2017-01-21T12:36:11Z Created : 17/01/2017 13:51:32 Category : Status : ExtendedPropertiesXml : \#document Application : Microsoft Excel HyperlinkBase : AppVersion : 14.0300 Company : Secret Service Manager : Modified : 10/02/2017 12:45:37 CustomPropertiesXml : \#document + + Online Version: + + https://github.com/dfinke/ImportExcel https://github.com/dfinke/ImportExcel @@ -10733,9 +10981,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Import-Excel Path - + Specifies the path to the Excel file. - + String String @@ -10745,9 +10993,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv WorksheetName - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. - + String String @@ -10757,10 +11005,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv NoHeader - + Automatically generate property names (P1, P2, P3, ..) instead of the ones defined in the column headers of the TopRow. This switch is best used when you want to import the complete worksheet 'as is' and are not concerned with the property names. - + SwitchParameter @@ -10769,10 +11017,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. If either is provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -10782,9 +11030,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndRow - + By default all rows up to the last cell in the sheet will be imported. If specified, import stops at this row. - + Int32 Int32 @@ -10794,9 +11042,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartColumn - + The number of the first column to read data from (1 by default). - + Int32 Int32 @@ -10806,9 +11054,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndColumn - + By default the import reads up to the last populated column, -EndColumn tells the import to stop at an earlier number. - + Int32 Int32 @@ -10818,9 +11066,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter @@ -10829,9 +11077,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsText - + Normally Import-Excel returns the Cell values. AsText allows selected columns to be returned as the text displayed in their cells. (* is supported as a wildcard.) - + String[] String[] @@ -10841,9 +11089,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -10853,9 +11101,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Password - + Accepts a string that will be used to open a password protected Excel file. - + String String @@ -10868,9 +11116,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Import-Excel Path - + Specifies the path to the Excel file. - + String String @@ -10880,9 +11128,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv WorksheetName - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. - + String String @@ -10892,11 +11140,11 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv HeaderName - + Specifies custom property names to use, instead of the values defined in the column headers of the TopRow. If you provide fewer header names than there are columns of data in the worksheet, then data will only be imported from that number of columns - the others will be ignored. If you provide more header names than there are columns of data in the worksheet, it will result in blank properties being added to the objects returned. - + String[] String[] @@ -10906,10 +11154,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. If either is provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -10919,9 +11167,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndRow - + By default all rows up to the last cell in the sheet will be imported. If specified, import stops at this row. - + Int32 Int32 @@ -10931,9 +11179,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartColumn - + The number of the first column to read data from (1 by default). - + Int32 Int32 @@ -10943,9 +11191,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndColumn - + By default the import reads up to the last populated column, -EndColumn tells the import to stop at an earlier number. - + Int32 Int32 @@ -10955,9 +11203,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter @@ -10966,9 +11214,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsText - + Normally Import-Excel returns the Cell values. AsText allows selected columns to be returned as the text displayed in their cells. (* is supported as a wildcard.) - + String[] String[] @@ -10978,9 +11226,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -10990,9 +11238,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Password - + Accepts a string that will be used to open a password protected Excel file. - + String String @@ -11005,9 +11253,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Import-Excel Path - + Specifies the path to the Excel file. - + String String @@ -11017,9 +11265,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv WorksheetName - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. - + String String @@ -11029,10 +11277,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. If either is provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -11042,9 +11290,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndRow - + By default all rows up to the last cell in the sheet will be imported. If specified, import stops at this row. - + Int32 Int32 @@ -11054,9 +11302,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartColumn - + The number of the first column to read data from (1 by default). - + Int32 Int32 @@ -11066,9 +11314,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndColumn - + By default the import reads up to the last populated column, -EndColumn tells the import to stop at an earlier number. - + Int32 Int32 @@ -11078,9 +11326,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter @@ -11089,9 +11337,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsText - + Normally Import-Excel returns the Cell values. AsText allows selected columns to be returned as the text displayed in their cells. (* is supported as a wildcard.) - + String[] String[] @@ -11101,9 +11349,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -11113,9 +11361,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Password - + Accepts a string that will be used to open a password protected Excel file. - + String String @@ -11128,9 +11376,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Import-Excel WorksheetName - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. - + String String @@ -11140,10 +11388,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv ExcelPackage - + Instead of specifying a path, provides an Excel Package object (from Open-ExcelPackage). Using this avoids re-reading the whole file when importing multiple parts of it. To allow multiple read operations Import-Excel does NOT close the package, and you should use Close-ExcelPackage -noSave to close it. - + ExcelPackage ExcelPackage @@ -11153,10 +11401,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv NoHeader - + Automatically generate property names (P1, P2, P3, ..) instead of the ones defined in the column headers of the TopRow. This switch is best used when you want to import the complete worksheet 'as is' and are not concerned with the property names. - + SwitchParameter @@ -11165,10 +11413,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. If either is provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -11178,9 +11426,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndRow - + By default all rows up to the last cell in the sheet will be imported. If specified, import stops at this row. - + Int32 Int32 @@ -11190,9 +11438,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartColumn - + The number of the first column to read data from (1 by default). - + Int32 Int32 @@ -11202,9 +11450,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndColumn - + By default the import reads up to the last populated column, -EndColumn tells the import to stop at an earlier number. - + Int32 Int32 @@ -11214,9 +11462,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter @@ -11225,9 +11473,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsText - + Normally Import-Excel returns the Cell values. AsText allows selected columns to be returned as the text displayed in their cells. (* is supported as a wildcard.) - + String[] String[] @@ -11237,9 +11485,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -11249,9 +11497,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Password - + Accepts a string that will be used to open a password protected Excel file. - + String String @@ -11264,9 +11512,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Import-Excel WorksheetName - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. - + String String @@ -11276,10 +11524,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv ExcelPackage - + Instead of specifying a path, provides an Excel Package object (from Open-ExcelPackage). Using this avoids re-reading the whole file when importing multiple parts of it. To allow multiple read operations Import-Excel does NOT close the package, and you should use Close-ExcelPackage -noSave to close it. - + ExcelPackage ExcelPackage @@ -11289,11 +11537,11 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv HeaderName - + Specifies custom property names to use, instead of the values defined in the column headers of the TopRow. If you provide fewer header names than there are columns of data in the worksheet, then data will only be imported from that number of columns - the others will be ignored. If you provide more header names than there are columns of data in the worksheet, it will result in blank properties being added to the objects returned. - + String[] String[] @@ -11303,10 +11551,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. If either is provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -11316,9 +11564,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndRow - + By default all rows up to the last cell in the sheet will be imported. If specified, import stops at this row. - + Int32 Int32 @@ -11328,9 +11576,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartColumn - + The number of the first column to read data from (1 by default). - + Int32 Int32 @@ -11340,9 +11588,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndColumn - + By default the import reads up to the last populated column, -EndColumn tells the import to stop at an earlier number. - + Int32 Int32 @@ -11352,9 +11600,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter @@ -11363,9 +11611,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsText - + Normally Import-Excel returns the Cell values. AsText allows selected columns to be returned as the text displayed in their cells. (* is supported as a wildcard.) - + String[] String[] @@ -11375,9 +11623,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -11387,9 +11635,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Password - + Accepts a string that will be used to open a password protected Excel file. - + String String @@ -11402,9 +11650,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Import-Excel WorksheetName - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. - + String String @@ -11414,10 +11662,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv ExcelPackage - + Instead of specifying a path, provides an Excel Package object (from Open-ExcelPackage). Using this avoids re-reading the whole file when importing multiple parts of it. To allow multiple read operations Import-Excel does NOT close the package, and you should use Close-ExcelPackage -noSave to close it. - + ExcelPackage ExcelPackage @@ -11427,10 +11675,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. If either is provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -11440,9 +11688,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndRow - + By default all rows up to the last cell in the sheet will be imported. If specified, import stops at this row. - + Int32 Int32 @@ -11452,9 +11700,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartColumn - + The number of the first column to read data from (1 by default). - + Int32 Int32 @@ -11464,9 +11712,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndColumn - + By default the import reads up to the last populated column, -EndColumn tells the import to stop at an earlier number. - + Int32 Int32 @@ -11476,9 +11724,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter @@ -11487,9 +11735,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsText - + Normally Import-Excel returns the Cell values. AsText allows selected columns to be returned as the text displayed in their cells. (* is supported as a wildcard.) - + String[] String[] @@ -11499,9 +11747,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -11511,9 +11759,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Password - + Accepts a string that will be used to open a password protected Excel file. - + String String @@ -11526,9 +11774,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Path - + Specifies the path to the Excel file. - + String String @@ -11538,10 +11786,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv ExcelPackage - + Instead of specifying a path, provides an Excel Package object (from Open-ExcelPackage). Using this avoids re-reading the whole file when importing multiple parts of it. To allow multiple read operations Import-Excel does NOT close the package, and you should use Close-ExcelPackage -noSave to close it. - + ExcelPackage ExcelPackage @@ -11551,9 +11799,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv WorksheetName - + Specifies the name of the worksheet in the Excel workbook to import. By default, if no name is provided, the first worksheet will be imported. - + String String @@ -11563,11 +11811,11 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv HeaderName - + Specifies custom property names to use, instead of the values defined in the column headers of the TopRow. If you provide fewer header names than there are columns of data in the worksheet, then data will only be imported from that number of columns - the others will be ignored. If you provide more header names than there are columns of data in the worksheet, it will result in blank properties being added to the objects returned. - + String[] String[] @@ -11577,10 +11825,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv NoHeader - + Automatically generate property names (P1, P2, P3, ..) instead of the ones defined in the column headers of the TopRow. This switch is best used when you want to import the complete worksheet 'as is' and are not concerned with the property names. - + SwitchParameter SwitchParameter @@ -11590,10 +11838,10 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartRow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. When the parameters '-NoHeader' and '-HeaderName' are not provided, this row will contain the column headers that will be used as property names. If either is provided, the property names are automatically created and this row will be treated as a regular row containing data. - + Int32 Int32 @@ -11603,9 +11851,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndRow - + By default all rows up to the last cell in the sheet will be imported. If specified, import stops at this row. - + Int32 Int32 @@ -11615,9 +11863,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv StartColumn - + The number of the first column to read data from (1 by default). - + Int32 Int32 @@ -11627,9 +11875,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv EndColumn - + By default the import reads up to the last populated column, -EndColumn tells the import to stop at an earlier number. - + Int32 Int32 @@ -11639,9 +11887,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv DataOnly - + Import only rows and columns that contain data, empty rows and empty columns are not imported. - + SwitchParameter SwitchParameter @@ -11651,9 +11899,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsText - + Normally Import-Excel returns the Cell values. AsText allows selected columns to be returned as the text displayed in their cells. (* is supported as a wildcard.) - + String[] String[] @@ -11663,9 +11911,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv AsDate - - Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) - + + Not all date formats are recognized as indicating the number in the cell represents a date AsDate forces the number which would be returned to be converted to a date. (* is supported as a wildcard.) + String[] String[] @@ -11675,9 +11923,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv Password - + Accepts a string that will be used to open a password protected Excel file. - + String String @@ -11848,6 +12096,10 @@ City : Brussels + + Online Version: + + https://github.com/dfinke/ImportExcel https://github.com/dfinke/ImportExcel @@ -11864,8 +12116,7 @@ City : Brussels - Join-Worksheet can work in two main ways, either - *Combining data which has the same layout from many pages into one, or *Combining pages which have nothing in common. In the former case the header row is copied from the first sheet and, by default, each row of data is labelled with the name of the sheet it came from. + Join-Worksheet can work in two main ways, either Combining data which has the same layout from many pages into one, or Combining pages which have nothing in common. In the former case the header row is copied from the first sheet and, by default, each row of data is labelled with the name of the sheet it came from. In the latter case -NoHeader is specified, and each copied block can have the sheet it came from placed above it as a title. @@ -11873,9 +12124,9 @@ City : Brussels Join-Worksheet Path - + Path to a new or existing .XLSX file. - + String String @@ -11885,9 +12136,9 @@ City : Brussels WorkSheetName - + The name of a sheet within the workbook where the other sheets will be joined together - "Combined" by default. - + Object Object @@ -11897,9 +12148,9 @@ City : Brussels Clearsheet - + If specified ,any pre-existing target for the joined data will be deleted and re-created; otherwise data will be appended on this sheet. - + SwitchParameter @@ -11908,9 +12159,9 @@ City : Brussels NoHeader - + Join-Worksheet assumes each sheet has identical headers and the headers should be copied to the target sheet, unless -NoHeader is specified. - + SwitchParameter @@ -11919,9 +12170,9 @@ City : Brussels FromLabel - + If -NoHeader is NOT specified, then rows of data will be labeled with the name of the sheet they came from. FromLabel is the header for this column. If it is null or empty, the labels will be omitted. - + String String @@ -11931,9 +12182,9 @@ City : Brussels LabelBlocks - + If specified, the copied blocks of data will have the name of the sheet they were copied from inserted above them as a title. - + SwitchParameter @@ -11942,9 +12193,9 @@ City : Brussels AutoSize - + Sets the width of the Excel columns to display all the data in their cells. - + SwitchParameter @@ -11953,9 +12204,9 @@ City : Brussels FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter @@ -11964,9 +12215,9 @@ City : Brussels FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter @@ -11975,9 +12226,9 @@ City : Brussels FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter @@ -11986,9 +12237,9 @@ City : Brussels FreezePane - + Freezes panes at specified coordinates (in the formRowNumber , ColumnNumber). - + Int32[] Int32[] @@ -11998,9 +12249,9 @@ City : Brussels AutoFilter - + Enables the Excel filter on the headers of the combined sheet. - + SwitchParameter @@ -12009,9 +12260,9 @@ City : Brussels BoldTopRow - + Makes the top row boldface. - + SwitchParameter @@ -12020,9 +12271,9 @@ City : Brussels HideSource - + If specified, hides the sheets that the data is copied from. - + SwitchParameter @@ -12031,9 +12282,9 @@ City : Brussels Title - + Text of a title to be placed in Cell A1. - + String String @@ -12043,9 +12294,9 @@ City : Brussels TitleFillPattern - + Sets the fill pattern for the title cell. - + None Solid @@ -12076,9 +12327,9 @@ City : Brussels TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -12088,9 +12339,9 @@ City : Brussels TitleBold - + Sets the title in boldface type. - + SwitchParameter @@ -12099,9 +12350,9 @@ City : Brussels TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -12111,9 +12362,9 @@ City : Brussels PivotTableDefinition - + Hashtable(s) with Sheet PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values to specify a definition for one or morePivotTable(s). - + Hashtable Hashtable @@ -12123,9 +12374,9 @@ City : Brussels ExcelChartDefinition - + A hashtable containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-pivot] charts. - + Object[] Object[] @@ -12135,9 +12386,9 @@ City : Brussels ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -12147,9 +12398,9 @@ City : Brussels ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. - + Object[] Object[] @@ -12159,9 +12410,9 @@ City : Brussels AutoNameRange - + Makes each column a named range. - + SwitchParameter @@ -12170,9 +12421,9 @@ City : Brussels RangeName - + Makes the data in the worksheet a named range. - + String String @@ -12182,9 +12433,9 @@ City : Brussels ReturnRange - + If specified, returns the range of cells in the combined sheet, in the format "A1:Z100". - + SwitchParameter @@ -12193,9 +12444,9 @@ City : Brussels Show - + Opens the Excel file immediately after creation. Convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter @@ -12204,9 +12455,9 @@ City : Brussels PassThru - + If specified, an object representing the unsaved Excel package will be returned, it then needs to be saved. - + SwitchParameter @@ -12218,9 +12469,9 @@ City : Brussels Join-Worksheet Path - + Path to a new or existing .XLSX file. - + String String @@ -12230,9 +12481,9 @@ City : Brussels WorkSheetName - + The name of a sheet within the workbook where the other sheets will be joined together - "Combined" by default. - + Object Object @@ -12242,9 +12493,9 @@ City : Brussels Clearsheet - + If specified ,any pre-existing target for the joined data will be deleted and re-created; otherwise data will be appended on this sheet. - + SwitchParameter @@ -12253,9 +12504,9 @@ City : Brussels NoHeader - + Join-Worksheet assumes each sheet has identical headers and the headers should be copied to the target sheet, unless -NoHeader is specified. - + SwitchParameter @@ -12264,9 +12515,9 @@ City : Brussels FromLabel - + If -NoHeader is NOT specified, then rows of data will be labeled with the name of the sheet they came from. FromLabel is the header for this column. If it is null or empty, the labels will be omitted. - + String String @@ -12276,9 +12527,9 @@ City : Brussels LabelBlocks - + If specified, the copied blocks of data will have the name of the sheet they were copied from inserted above them as a title. - + SwitchParameter @@ -12287,9 +12538,9 @@ City : Brussels AutoSize - + Sets the width of the Excel columns to display all the data in their cells. - + SwitchParameter @@ -12298,9 +12549,9 @@ City : Brussels FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter @@ -12309,9 +12560,9 @@ City : Brussels FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter @@ -12320,9 +12571,9 @@ City : Brussels FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter @@ -12331,9 +12582,9 @@ City : Brussels FreezePane - + Freezes panes at specified coordinates (in the formRowNumber , ColumnNumber). - + Int32[] Int32[] @@ -12343,9 +12594,9 @@ City : Brussels BoldTopRow - + Makes the top row boldface. - + SwitchParameter @@ -12354,9 +12605,9 @@ City : Brussels HideSource - + If specified, hides the sheets that the data is copied from. - + SwitchParameter @@ -12365,9 +12616,9 @@ City : Brussels Title - + Text of a title to be placed in Cell A1. - + String String @@ -12377,9 +12628,9 @@ City : Brussels TitleFillPattern - + Sets the fill pattern for the title cell. - + None Solid @@ -12410,9 +12661,9 @@ City : Brussels TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -12422,9 +12673,9 @@ City : Brussels TitleBold - + Sets the title in boldface type. - + SwitchParameter @@ -12433,9 +12684,9 @@ City : Brussels TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -12445,9 +12696,9 @@ City : Brussels PivotTableDefinition - + Hashtable(s) with Sheet PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values to specify a definition for one or morePivotTable(s). - + Hashtable Hashtable @@ -12457,9 +12708,9 @@ City : Brussels ExcelChartDefinition - + A hashtable containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-pivot] charts. - + Object[] Object[] @@ -12469,9 +12720,9 @@ City : Brussels ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -12481,9 +12732,9 @@ City : Brussels ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. - + Object[] Object[] @@ -12493,9 +12744,9 @@ City : Brussels AutoNameRange - + Makes each column a named range. - + SwitchParameter @@ -12504,9 +12755,9 @@ City : Brussels RangeName - + Makes the data in the worksheet a named range. - + String String @@ -12516,9 +12767,9 @@ City : Brussels TableName - + Makes the data in the worksheet a table with a name and applies a style to it. Name must not contain spaces. - + String String @@ -12528,9 +12779,9 @@ City : Brussels TableStyle - + Selects the style for the named table - defaults to "Medium6". - + None Custom @@ -12604,9 +12855,9 @@ City : Brussels ReturnRange - + If specified, returns the range of cells in the combined sheet, in the format "A1:Z100". - + SwitchParameter @@ -12615,9 +12866,9 @@ City : Brussels Show - + Opens the Excel file immediately after creation. Convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter @@ -12626,9 +12877,9 @@ City : Brussels PassThru - + If specified, an object representing the unsaved Excel package will be returned, it then needs to be saved. - + SwitchParameter @@ -12640,9 +12891,9 @@ City : Brussels Join-Worksheet ExcelPackage - + An object representing an Excel Package - either from Open-ExcelPackage or specifying -PassThru to Export-Excel. - + ExcelPackage ExcelPackage @@ -12652,9 +12903,9 @@ City : Brussels WorkSheetName - + The name of a sheet within the workbook where the other sheets will be joined together - "Combined" by default. - + Object Object @@ -12664,9 +12915,9 @@ City : Brussels Clearsheet - + If specified ,any pre-existing target for the joined data will be deleted and re-created; otherwise data will be appended on this sheet. - + SwitchParameter @@ -12675,9 +12926,9 @@ City : Brussels NoHeader - + Join-Worksheet assumes each sheet has identical headers and the headers should be copied to the target sheet, unless -NoHeader is specified. - + SwitchParameter @@ -12686,9 +12937,9 @@ City : Brussels FromLabel - + If -NoHeader is NOT specified, then rows of data will be labeled with the name of the sheet they came from. FromLabel is the header for this column. If it is null or empty, the labels will be omitted. - + String String @@ -12698,9 +12949,9 @@ City : Brussels LabelBlocks - + If specified, the copied blocks of data will have the name of the sheet they were copied from inserted above them as a title. - + SwitchParameter @@ -12709,9 +12960,9 @@ City : Brussels AutoSize - + Sets the width of the Excel columns to display all the data in their cells. - + SwitchParameter @@ -12720,9 +12971,9 @@ City : Brussels FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter @@ -12731,9 +12982,9 @@ City : Brussels FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter @@ -12742,9 +12993,9 @@ City : Brussels FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter @@ -12753,9 +13004,9 @@ City : Brussels FreezePane - + Freezes panes at specified coordinates (in the formRowNumber , ColumnNumber). - + Int32[] Int32[] @@ -12765,9 +13016,9 @@ City : Brussels BoldTopRow - + Makes the top row boldface. - + SwitchParameter @@ -12776,9 +13027,9 @@ City : Brussels HideSource - + If specified, hides the sheets that the data is copied from. - + SwitchParameter @@ -12787,9 +13038,9 @@ City : Brussels Title - + Text of a title to be placed in Cell A1. - + String String @@ -12799,9 +13050,9 @@ City : Brussels TitleFillPattern - + Sets the fill pattern for the title cell. - + None Solid @@ -12832,9 +13083,9 @@ City : Brussels TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -12844,9 +13095,9 @@ City : Brussels TitleBold - + Sets the title in boldface type. - + SwitchParameter @@ -12855,9 +13106,9 @@ City : Brussels TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -12867,9 +13118,9 @@ City : Brussels PivotTableDefinition - + Hashtable(s) with Sheet PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values to specify a definition for one or morePivotTable(s). - + Hashtable Hashtable @@ -12879,9 +13130,9 @@ City : Brussels ExcelChartDefinition - + A hashtable containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-pivot] charts. - + Object[] Object[] @@ -12891,9 +13142,9 @@ City : Brussels ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -12903,9 +13154,9 @@ City : Brussels ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. - + Object[] Object[] @@ -12915,9 +13166,9 @@ City : Brussels AutoNameRange - + Makes each column a named range. - + SwitchParameter @@ -12926,9 +13177,9 @@ City : Brussels RangeName - + Makes the data in the worksheet a named range. - + String String @@ -12938,9 +13189,9 @@ City : Brussels TableName - + Makes the data in the worksheet a table with a name and applies a style to it. Name must not contain spaces. - + String String @@ -12950,9 +13201,9 @@ City : Brussels TableStyle - + Selects the style for the named table - defaults to "Medium6". - + None Custom @@ -13026,9 +13277,9 @@ City : Brussels ReturnRange - + If specified, returns the range of cells in the combined sheet, in the format "A1:Z100". - + SwitchParameter @@ -13037,9 +13288,9 @@ City : Brussels Show - + Opens the Excel file immediately after creation. Convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter @@ -13048,9 +13299,9 @@ City : Brussels PassThru - + If specified, an object representing the unsaved Excel package will be returned, it then needs to be saved. - + SwitchParameter @@ -13062,9 +13313,9 @@ City : Brussels Join-Worksheet ExcelPackage - + An object representing an Excel Package - either from Open-ExcelPackage or specifying -PassThru to Export-Excel. - + ExcelPackage ExcelPackage @@ -13074,9 +13325,9 @@ City : Brussels WorkSheetName - + The name of a sheet within the workbook where the other sheets will be joined together - "Combined" by default. - + Object Object @@ -13086,9 +13337,9 @@ City : Brussels Clearsheet - + If specified ,any pre-existing target for the joined data will be deleted and re-created; otherwise data will be appended on this sheet. - + SwitchParameter @@ -13097,9 +13348,9 @@ City : Brussels NoHeader - + Join-Worksheet assumes each sheet has identical headers and the headers should be copied to the target sheet, unless -NoHeader is specified. - + SwitchParameter @@ -13108,9 +13359,9 @@ City : Brussels FromLabel - + If -NoHeader is NOT specified, then rows of data will be labeled with the name of the sheet they came from. FromLabel is the header for this column. If it is null or empty, the labels will be omitted. - + String String @@ -13120,9 +13371,9 @@ City : Brussels LabelBlocks - + If specified, the copied blocks of data will have the name of the sheet they were copied from inserted above them as a title. - + SwitchParameter @@ -13131,9 +13382,9 @@ City : Brussels AutoSize - + Sets the width of the Excel columns to display all the data in their cells. - + SwitchParameter @@ -13142,9 +13393,9 @@ City : Brussels FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter @@ -13153,9 +13404,9 @@ City : Brussels FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter @@ -13164,9 +13415,9 @@ City : Brussels FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter @@ -13175,9 +13426,9 @@ City : Brussels FreezePane - + Freezes panes at specified coordinates (in the formRowNumber , ColumnNumber). - + Int32[] Int32[] @@ -13187,9 +13438,9 @@ City : Brussels AutoFilter - + Enables the Excel filter on the headers of the combined sheet. - + SwitchParameter @@ -13198,9 +13449,9 @@ City : Brussels BoldTopRow - + Makes the top row boldface. - + SwitchParameter @@ -13209,9 +13460,9 @@ City : Brussels HideSource - + If specified, hides the sheets that the data is copied from. - + SwitchParameter @@ -13220,9 +13471,9 @@ City : Brussels Title - + Text of a title to be placed in Cell A1. - + String String @@ -13232,9 +13483,9 @@ City : Brussels TitleFillPattern - + Sets the fill pattern for the title cell. - + None Solid @@ -13265,9 +13516,9 @@ City : Brussels TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -13277,9 +13528,9 @@ City : Brussels TitleBold - + Sets the title in boldface type. - + SwitchParameter @@ -13288,9 +13539,9 @@ City : Brussels TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -13300,9 +13551,9 @@ City : Brussels PivotTableDefinition - + Hashtable(s) with Sheet PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values to specify a definition for one or morePivotTable(s). - + Hashtable Hashtable @@ -13312,9 +13563,9 @@ City : Brussels ExcelChartDefinition - + A hashtable containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-pivot] charts. - + Object[] Object[] @@ -13324,9 +13575,9 @@ City : Brussels ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -13336,9 +13587,9 @@ City : Brussels ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. - + Object[] Object[] @@ -13348,9 +13599,9 @@ City : Brussels AutoNameRange - + Makes each column a named range. - + SwitchParameter @@ -13359,9 +13610,9 @@ City : Brussels RangeName - + Makes the data in the worksheet a named range. - + String String @@ -13371,9 +13622,9 @@ City : Brussels ReturnRange - + If specified, returns the range of cells in the combined sheet, in the format "A1:Z100". - + SwitchParameter @@ -13382,9 +13633,9 @@ City : Brussels Show - + Opens the Excel file immediately after creation. Convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter @@ -13393,9 +13644,9 @@ City : Brussels PassThru - + If specified, an object representing the unsaved Excel package will be returned, it then needs to be saved. - + SwitchParameter @@ -13407,9 +13658,9 @@ City : Brussels Path - + Path to a new or existing .XLSX file. - + String String @@ -13419,9 +13670,9 @@ City : Brussels ExcelPackage - + An object representing an Excel Package - either from Open-ExcelPackage or specifying -PassThru to Export-Excel. - + ExcelPackage ExcelPackage @@ -13431,9 +13682,9 @@ City : Brussels WorkSheetName - + The name of a sheet within the workbook where the other sheets will be joined together - "Combined" by default. - + Object Object @@ -13443,9 +13694,9 @@ City : Brussels Clearsheet - + If specified ,any pre-existing target for the joined data will be deleted and re-created; otherwise data will be appended on this sheet. - + SwitchParameter SwitchParameter @@ -13455,9 +13706,9 @@ City : Brussels NoHeader - + Join-Worksheet assumes each sheet has identical headers and the headers should be copied to the target sheet, unless -NoHeader is specified. - + SwitchParameter SwitchParameter @@ -13467,9 +13718,9 @@ City : Brussels FromLabel - + If -NoHeader is NOT specified, then rows of data will be labeled with the name of the sheet they came from. FromLabel is the header for this column. If it is null or empty, the labels will be omitted. - + String String @@ -13479,9 +13730,9 @@ City : Brussels LabelBlocks - + If specified, the copied blocks of data will have the name of the sheet they were copied from inserted above them as a title. - + SwitchParameter SwitchParameter @@ -13491,9 +13742,9 @@ City : Brussels AutoSize - + Sets the width of the Excel columns to display all the data in their cells. - + SwitchParameter SwitchParameter @@ -13503,9 +13754,9 @@ City : Brussels FreezeTopRow - + Freezes headers etc. in the top row. - + SwitchParameter SwitchParameter @@ -13515,9 +13766,9 @@ City : Brussels FreezeFirstColumn - + Freezes titles etc. in the left column. - + SwitchParameter SwitchParameter @@ -13527,9 +13778,9 @@ City : Brussels FreezeTopRowFirstColumn - + Freezes top row and left column (equivalent to Freeze pane 2,2 ). - + SwitchParameter SwitchParameter @@ -13539,9 +13790,9 @@ City : Brussels FreezePane - + Freezes panes at specified coordinates (in the formRowNumber , ColumnNumber). - + Int32[] Int32[] @@ -13551,9 +13802,9 @@ City : Brussels AutoFilter - + Enables the Excel filter on the headers of the combined sheet. - + SwitchParameter SwitchParameter @@ -13563,9 +13814,9 @@ City : Brussels BoldTopRow - + Makes the top row boldface. - + SwitchParameter SwitchParameter @@ -13575,9 +13826,9 @@ City : Brussels HideSource - + If specified, hides the sheets that the data is copied from. - + SwitchParameter SwitchParameter @@ -13587,9 +13838,9 @@ City : Brussels Title - + Text of a title to be placed in Cell A1. - + String String @@ -13599,9 +13850,9 @@ City : Brussels TitleFillPattern - + Sets the fill pattern for the title cell. - + ExcelFillStyle ExcelFillStyle @@ -13611,9 +13862,9 @@ City : Brussels TitleBackgroundColor - + Sets the cell background color for the title cell. - + Object Object @@ -13623,9 +13874,9 @@ City : Brussels TitleBold - + Sets the title in boldface type. - + SwitchParameter SwitchParameter @@ -13635,9 +13886,9 @@ City : Brussels TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -13647,9 +13898,9 @@ City : Brussels PivotTableDefinition - + Hashtable(s) with Sheet PivotRows, PivotColumns, PivotData, IncludePivotChart and ChartType values to specify a definition for one or morePivotTable(s). - + Hashtable Hashtable @@ -13659,9 +13910,9 @@ City : Brussels ExcelChartDefinition - + A hashtable containing ChartType, Title, NoLegend, ShowCategory, ShowPercent, Yrange, Xrange and SeriesHeader for one or more [non-pivot] charts. - + Object[] Object[] @@ -13671,9 +13922,9 @@ City : Brussels ConditionalFormat - + One or more conditional formatting rules defined with New-ConditionalFormattingIconSet. - + Object[] Object[] @@ -13683,9 +13934,9 @@ City : Brussels ConditionalText - + Applies a Conditional formatting rule defined with New-ConditionalText. - + Object[] Object[] @@ -13695,9 +13946,9 @@ City : Brussels AutoNameRange - + Makes each column a named range. - + SwitchParameter SwitchParameter @@ -13707,9 +13958,9 @@ City : Brussels RangeName - + Makes the data in the worksheet a named range. - + String String @@ -13719,9 +13970,9 @@ City : Brussels TableName - + Makes the data in the worksheet a table with a name and applies a style to it. Name must not contain spaces. - + String String @@ -13731,9 +13982,9 @@ City : Brussels TableStyle - + Selects the style for the named table - defaults to "Medium6". - + TableStyles TableStyles @@ -13743,9 +13994,9 @@ City : Brussels ReturnRange - + If specified, returns the range of cells in the combined sheet, in the format "A1:Z100". - + SwitchParameter SwitchParameter @@ -13755,9 +14006,9 @@ City : Brussels Show - + Opens the Excel file immediately after creation. Convenient for viewing the results instantly without having to search for the file first. - + SwitchParameter SwitchParameter @@ -13767,9 +14018,9 @@ City : Brussels PassThru - + If specified, an object representing the unsaved Excel package will be returned, it then needs to be saved. - + SwitchParameter SwitchParameter @@ -13817,7 +14068,7 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Online Version: - https://github.com/dfinke/ImportExcel + @@ -13832,10 +14083,11 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit The Merge Worksheet command combines two sheets. Merge-MultipleSheets is designed to merge more than two. - If asked to merge sheets A,B,C which contain Services, with a Name, Displayname and Start mode, where "Name" is treated as the key, Merge-MultipleSheets: + If asked to merge sheets A,B,C which contain Services, with a Name, Displayname and Start mode, where "Name" is treated as the key, Merge-MultipleSheets: * Calls Merge-Worksheet to merge "Name", "Displayname" and "Startmode" from sheets A and C; the result has column headings "_Row", "Name", "DisplayName", "Startmode", "C-DisplayName", "C-StartMode", "C-Is" and "C-Row". * Calls Merge-Worksheet again passing it the intermediate result and sheet B, comparing "Name", "Displayname" and "Start mode" columns on each side, and gets a result with columns "_Row", "Name", "DisplayName", "Startmode", "B-DisplayName", "B-StartMode", "B-Is", "B-Row", "C-DisplayName", "C-StartMode", "C-Is" and "C-Row". - Any columns on the "reference" side which are not used in the comparison are added on the right, which is why we compare the sheets in reverse order. + + Any columns on the "reference" side which are not used in the comparison are added on the right, which is why we compare the sheets in reverse order. The "Is" columns hold "Same", "Added", "Removed" or "Changed" and is used for conditional formatting in the output sheet (these columns are hidden by default), and when the data is written to Excel the "reference" columns, in this case "DisplayName" and "Start" are renamed to reflect their source, so they become "A-DisplayName" and "A-Start". Conditional formatting is also applied to the Key column ("Name" in this case) so the view can be filtered to rows with changes by filtering this column on color. Note: the processing order can affect what is seen as a change.For example, if there is an extra item in sheet B in the example above, Sheet C will be processed first and that row and will not be seen to be missing. When sheet B is processed it is marked as an addition, and the conditional formatting marks the entries from sheet A to show that a values were added in at least one sheet. @@ -13846,9 +14098,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Merge-MultipleSheets Path - + Paths to the files to be merged. Files are also accepted - + Object Object @@ -13858,9 +14110,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit KeyFontColor - + Sets the font color for the Key field; this means you can filter by color to get only changed rows. - + Object Object @@ -13870,9 +14122,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit ChangeBackgroundColor - + Sets the background color for changed rows. - + Object Object @@ -13882,9 +14134,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit DeleteBackgroundColor - + Sets the background color for rows in the reference but deleted from the difference sheet. - + Object Object @@ -13894,9 +14146,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit AddBackgroundColor - + Sets the background color for rows not in the reference but added to the difference sheet. - + Object Object @@ -13906,9 +14158,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Startrow - + The row from where we start to import data, all rows above the Start row are disregarded. By default this is the first row. - + Int32 Int32 @@ -13918,9 +14170,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Headername - + Specifies custom property names to use, instead of the values defined in the column headers of the Start row. - + String[] String[] @@ -13930,9 +14182,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit WorksheetName - + Name(s) of Worksheets to compare. - + Object Object @@ -13942,9 +14194,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit OutputFile - + File to write output to. - + Object Object @@ -13954,9 +14206,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit OutputSheetName - + Name of Worksheet to output - if none specified will use the reference Worksheet name. - + Object Object @@ -13966,9 +14218,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Property - + Properties to include in the comparison - supports wildcards, default is "*". - + Object Object @@ -13978,9 +14230,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit ExcludeProperty - + Properties to exclude from the the comparison - supports wildcards. - + Object Object @@ -13990,9 +14242,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Key - + Name of a column which is unique used to pair up rows from the reference and difference sides, default is "Name". - + Object Object @@ -14002,9 +14254,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit NoHeader - + If specified, property names will be automatically generated (P1, P2, P3, ..) instead of using the values from the start row. - + SwitchParameter @@ -14013,9 +14265,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit HideRowNumbers - + If specified, hides the columns in the spreadsheet that contain the row numbers. - + SwitchParameter @@ -14024,9 +14276,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Passthru - + If specified, outputs the data to the pipeline (you can add -whatif so it the command only outputs to the pipeline). - + SwitchParameter @@ -14035,9 +14287,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Show - + If specified, opens the output workbook. - + SwitchParameter @@ -14049,9 +14301,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Path - + Paths to the files to be merged. Files are also accepted - + Object Object @@ -14061,9 +14313,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Startrow - + The row from where we start to import data, all rows above the Start row are disregarded. By default this is the first row. - + Int32 Int32 @@ -14073,9 +14325,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Headername - + Specifies custom property names to use, instead of the values defined in the column headers of the Start row. - + String[] String[] @@ -14085,9 +14337,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit NoHeader - + If specified, property names will be automatically generated (P1, P2, P3, ..) instead of using the values from the start row. - + SwitchParameter SwitchParameter @@ -14097,9 +14349,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit WorksheetName - + Name(s) of Worksheets to compare. - + Object Object @@ -14109,9 +14361,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit OutputFile - + File to write output to. - + Object Object @@ -14121,9 +14373,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit OutputSheetName - + Name of Worksheet to output - if none specified will use the reference Worksheet name. - + Object Object @@ -14133,9 +14385,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Property - + Properties to include in the comparison - supports wildcards, default is "*". - + Object Object @@ -14145,9 +14397,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit ExcludeProperty - + Properties to exclude from the the comparison - supports wildcards. - + Object Object @@ -14157,9 +14409,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Key - + Name of a column which is unique used to pair up rows from the reference and difference sides, default is "Name". - + Object Object @@ -14169,9 +14421,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit KeyFontColor - + Sets the font color for the Key field; this means you can filter by color to get only changed rows. - + Object Object @@ -14181,9 +14433,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit ChangeBackgroundColor - + Sets the background color for changed rows. - + Object Object @@ -14193,9 +14445,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit DeleteBackgroundColor - + Sets the background color for rows in the reference but deleted from the difference sheet. - + Object Object @@ -14205,9 +14457,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit AddBackgroundColor - + Sets the background color for rows not in the reference but added to the difference sheet. - + Object Object @@ -14217,9 +14469,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit HideRowNumbers - + If specified, hides the columns in the spreadsheet that contain the row numbers. - + SwitchParameter SwitchParameter @@ -14229,9 +14481,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Passthru - + If specified, outputs the data to the pipeline (you can add -whatif so it the command only outputs to the pipeline). - + SwitchParameter SwitchParameter @@ -14241,9 +14493,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Show - + If specified, opens the output workbook. - + SwitchParameter SwitchParameter @@ -14264,7 +14516,7 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit -------------------------- EXAMPLE 1 -------------------------- PS\> dir Server*.xlsx | Merge-MulipleSheets -WorksheetName Services -OutputFile Test2.xlsx -OutputSheetName Services -Show - Here we are auditing servers and each one has a workbook in the current directory which contains a "Services" Worksheet (the result of Get-WmiObject -Class win32_service | Select-Object -Property Name, Displayname, Startmode). No key is specified so the key is assumed to be the "Name" column. The files are merged and the result is opened on completion. + Here we are auditing servers and each one has a workbook in the current directory which contains a "Services" Worksheet (the result of Get-WmiObject -Class win32_service \| Select-Object -Property Name, Displayname, Startmode). No key is specified so the key is assumed to be the "Name" column. The files are merged and the result is opened on completion. @@ -14278,14 +14530,14 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit -------------------------- EXAMPLE 3 -------------------------- Merge-MulipleSheets -Path hotfixes.xlsx -WorksheetName Serv* -Key hotfixid -OutputFile test2.xlsx -OutputSheetName hotfixes -HideRowNumbers -Show - This time all the servers have written their hotfix information to their own worksheets in a shared Excel workbook named "Hotfixes.xlsx" (the information was obtained by running Get-Hotfix | Sort-Object -Property description,hotfixid | Select-Object -Property Description,HotfixID) This ignores any sheets which are not named "Serv*", and uses the HotfixID as the key; in this version the row numbers are hidden. + This time all the servers have written their hotfix information to their own worksheets in a shared Excel workbook named "Hotfixes.xlsx" (the information was obtained by running Get-Hotfix \| Sort-Object -Property description,hotfixid \| Select-Object -Property Description,HotfixID) This ignores any sheets which are not named "Serv*", and uses the HotfixID as the key; in this version the row numbers are hidden. Online Version: - https://github.com/dfinke/ImportExcel + @@ -14307,12 +14559,12 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Merge-Worksheet Referencefile - + First Excel file to compare. You can compare two Excel files or two other objects or a reference obhct against a difference file, but not a reference file against an object. works with the following parameter sets * A = Compare two files default headers * B = Compare two files user supplied headers * C = Compare two files headers P1, P2, P3 etc - + Object Object @@ -14322,13 +14574,13 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Differencefile - + Second Excel file to compare. Works with paramter sets A,B,C as well as the following * D = Compare two objects; * E = Compare one object one file that uses default headers * F = Compare one object one file that uses user supplied headers * G = Compare one object one file that uses headers P1, P2, P3 etc - + Object Object @@ -14338,33 +14590,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit WorksheetName - + Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) - - Object - - Object - - - Sheet1 - - - OutputFile - - File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - - Name of Worksheet to output - if none specified will use the reference Worksheet name. - + Object Object @@ -14374,9 +14602,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Startrow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) - + Int32 Int32 @@ -14384,36 +14612,17 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit 1 - - NoHeader - - Automatically generate property names (P1, P2, P3, ..) instead of using the values the top row of the sheet. Works with parameter sets - * C 2 sheets with headers of P1, P2, P3 ... - * G Compare object + sheet - - - SwitchParameter - - - False - - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - - Properties to exclude from the the search - supports wildcards. - + + + Merge-Worksheet + + Referencefile + + First Excel file to compare. You can compare two Excel files or two other objects or a reference obhct against a difference file, but not a reference file against an object. works with the following parameter sets + * A = Compare two files default headers + * B = Compare two files user supplied headers + * C = Compare two files headers P1, P2, P3 etc + Object Object @@ -14421,132 +14630,57 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit None - - Key - - Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - - Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - - Sets the background color for changed rows. - - Object - - Object - - - [System.Drawing.Color]::Orange - - - DeleteBackgroundColor - - Sets the background color for rows in the reference but deleted from the difference sheet. - + + Differencefile + + Second Excel file to compare. Works with paramter sets A,B,C as well as the following + * D = Compare two objects; + * E = Compare one object one file that uses default headers + * F = Compare one object one file that uses user supplied headers + * G = Compare one object one file that uses headers P1, P2, P3 etc + Object Object - [System.Drawing.Color]::LightPink + None - - AddBackgroundColor - - Sets the background color for rows not in the reference but added to the difference sheet. - + + WorksheetName + + Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) + Object Object - [System.Drawing.Color]::PaleGreen - - - HideEqual - - if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - - SwitchParameter - - - False + Sheet1 - Show - - If specified, opens the output workbook. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - + Startrow + + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) + + Int32 - SwitchParameter + Int32 - False + 1 Merge-Worksheet Referencefile - + First Excel file to compare. You can compare two Excel files or two other objects or a reference obhct against a difference file, but not a reference file against an object. works with the following parameter sets * A = Compare two files default headers * B = Compare two files user supplied headers * C = Compare two files headers P1, P2, P3 etc - + Object Object @@ -14556,13 +14690,13 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Differencefile - + Second Excel file to compare. Works with paramter sets A,B,C as well as the following * D = Compare two objects; * E = Compare one object one file that uses default headers * F = Compare one object one file that uses user supplied headers * G = Compare one object one file that uses headers P1, P2, P3 etc - + Object Object @@ -14572,33 +14706,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit WorksheetName - + Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) - - Object - - Object - - - Sheet1 - - - OutputFile - - File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - - Name of Worksheet to output - if none specified will use the reference Worksheet name. - + Object Object @@ -14608,9 +14718,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Startrow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) - + Int32 Int32 @@ -14618,186 +14728,18 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit 1 - - Headername - - Specifies custom property names to use, instead of the values defined in the column headers of the Start Row. Works with the following parameter sets: - * B 2 sheets with user supplied headers - * F Compare object + sheet - - String[] - - String[] - - - None - - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - - Properties to exclude from the the search - supports wildcards. - - Object - - Object - - - None - - - Key - - Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - - Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - - Sets the background color for changed rows. - - Object - - Object - - - [System.Drawing.Color]::Orange - - - DeleteBackgroundColor - - Sets the background color for rows in the reference but deleted from the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::LightPink - - - AddBackgroundColor - - Sets the background color for rows not in the reference but added to the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::PaleGreen - - - HideEqual - - if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - - SwitchParameter - - - False - - - Show - - If specified, opens the output workbook. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - Merge-Worksheet - - Referencefile - - First Excel file to compare. You can compare two Excel files or two other objects or a reference obhct against a difference file, but not a reference file against an object. works with the following parameter sets - * A = Compare two files default headers - * B = Compare two files user supplied headers - * C = Compare two files headers P1, P2, P3 etc - - Object - - Object - - - None - Differencefile - + Second Excel file to compare. Works with paramter sets A,B,C as well as the following * D = Compare two objects; * E = Compare one object one file that uses default headers * F = Compare one object one file that uses user supplied headers * G = Compare one object one file that uses headers P1, P2, P3 etc - + Object Object @@ -14807,33 +14749,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit WorksheetName - + Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) - - Object - - Object - - - Sheet1 - - - OutputFile - - File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - - Name of Worksheet to output - if none specified will use the reference Worksheet name. - + Object Object @@ -14843,9 +14761,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Startrow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) - + Int32 Int32 @@ -14853,23 +14771,18 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit 1 - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - - Properties to exclude from the the search - supports wildcards. - + + + Merge-Worksheet + + Differencefile + + Second Excel file to compare. Works with paramter sets A,B,C as well as the following + * D = Compare two objects; + * E = Compare one object one file that uses default headers + * F = Compare one object one file that uses user supplied headers + * G = Compare one object one file that uses headers P1, P2, P3 etc + Object Object @@ -14877,1051 +14790,84 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit None - - Key - - Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - - Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - - Sets the background color for changed rows. - + + WorksheetName + + Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) + Object Object - [System.Drawing.Color]::Orange + Sheet1 - DeleteBackgroundColor - - Sets the background color for rows in the reference but deleted from the difference sheet. - - Object + Startrow + + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) + + Int32 - Object + Int32 - [System.Drawing.Color]::LightPink + 1 - - AddBackgroundColor - - Sets the background color for rows not in the reference but added to the difference sheet. - + + + Merge-Worksheet + + Differencefile + + Second Excel file to compare. Works with paramter sets A,B,C as well as the following + * D = Compare two objects; + * E = Compare one object one file that uses default headers + * F = Compare one object one file that uses user supplied headers + * G = Compare one object one file that uses headers P1, P2, P3 etc + Object Object - [System.Drawing.Color]::PaleGreen - - - HideEqual - - if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - - SwitchParameter - - - False - - - Show - - If specified, opens the output workbook. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - - Merge-Worksheet - - Differencefile - - Second Excel file to compare. Works with paramter sets A,B,C as well as the following - * D = Compare two objects; - * E = Compare one object one file that uses default headers - * F = Compare one object one file that uses user supplied headers - * G = Compare one object one file that uses headers P1, P2, P3 etc - - Object - - Object - - - None - - - WorksheetName - - Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) - - Object - - Object - - - Sheet1 - - - DiffPrefix - - If there isn't a filename to use to label data from the "Difference" side, DiffPrefix is used, it defaults to "=>" - - Object - - Object - - - => - - - OutputFile - - File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - - Name of Worksheet to output - if none specified will use the reference Worksheet name. - - Object - - Object - - - Sheet1 - - - Startrow - - The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) - - Int32 - - Int32 - - - 1 - - - NoHeader - - Automatically generate property names (P1, P2, P3, ..) instead of using the values the top row of the sheet. Works with parameter sets - * C 2 sheets with headers of P1, P2, P3 ... - * G Compare object + sheet - - - SwitchParameter - - - False - - - ReferenceObject - - Reference object to compare if a Worksheet is NOT being used. Reference object can combine with a difference sheet or difference object - - Object - - Object - - - None - - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - - Properties to exclude from the the search - supports wildcards. - - Object - - Object - - - None - - - Key - - Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - - Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - - Sets the background color for changed rows. - - Object - - Object - - - [System.Drawing.Color]::Orange - - - DeleteBackgroundColor - - Sets the background color for rows in the reference but deleted from the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::LightPink - - - AddBackgroundColor - - Sets the background color for rows not in the reference but added to the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::PaleGreen - - - HideEqual - - if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - - SwitchParameter - - - False - - - Show - - If specified, opens the output workbook. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - - Merge-Worksheet - - Differencefile - - Second Excel file to compare. Works with paramter sets A,B,C as well as the following - * D = Compare two objects; - * E = Compare one object one file that uses default headers - * F = Compare one object one file that uses user supplied headers - * G = Compare one object one file that uses headers P1, P2, P3 etc - - Object - - Object - - - None - - - WorksheetName - - Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) - - Object - - Object - - - Sheet1 - - - DiffPrefix - - If there isn't a filename to use to label data from the "Difference" side, DiffPrefix is used, it defaults to "=>" - - Object - - Object - - - => - - - OutputFile - - File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - - Name of Worksheet to output - if none specified will use the reference Worksheet name. - - Object - - Object - - - Sheet1 - - - Startrow - - The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) - - Int32 - - Int32 - - - 1 - - - Headername - - Specifies custom property names to use, instead of the values defined in the column headers of the Start Row. Works with the following parameter sets: - * B 2 sheets with user supplied headers - * F Compare object + sheet - - String[] - - String[] - - - None - - - ReferenceObject - - Reference object to compare if a Worksheet is NOT being used. Reference object can combine with a difference sheet or difference object - - Object - - Object - - - None - - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - - Properties to exclude from the the search - supports wildcards. - - Object - - Object - - - None - - - Key - - Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - - Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - - Sets the background color for changed rows. - - Object - - Object - - - [System.Drawing.Color]::Orange - - - DeleteBackgroundColor - - Sets the background color for rows in the reference but deleted from the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::LightPink - - - AddBackgroundColor - - Sets the background color for rows not in the reference but added to the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::PaleGreen - - - HideEqual - - if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - - SwitchParameter - - - False - - - Show - - If specified, opens the output workbook. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - - Merge-Worksheet - - Differencefile - - Second Excel file to compare. Works with paramter sets A,B,C as well as the following - * D = Compare two objects; - * E = Compare one object one file that uses default headers - * F = Compare one object one file that uses user supplied headers - * G = Compare one object one file that uses headers P1, P2, P3 etc - - Object - - Object - - - None - - - WorksheetName - - Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) - - Object - - Object - - - Sheet1 - - - DiffPrefix - - If there isn't a filename to use to label data from the "Difference" side, DiffPrefix is used, it defaults to "=>" - - Object - - Object - - - => - - - OutputFile - - File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - - Name of Worksheet to output - if none specified will use the reference Worksheet name. - - Object - - Object - - - Sheet1 - - - Startrow - - The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) - - Int32 - - Int32 - - - 1 - - - ReferenceObject - - Reference object to compare if a Worksheet is NOT being used. Reference object can combine with a difference sheet or difference object - - Object - - Object - - - None - - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - - Properties to exclude from the the search - supports wildcards. - - Object - - Object - - - None - - - Key - - Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - - Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - - Sets the background color for changed rows. - - Object - - Object - - - [System.Drawing.Color]::Orange - - - DeleteBackgroundColor - - Sets the background color for rows in the reference but deleted from the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::LightPink - - - AddBackgroundColor - - Sets the background color for rows not in the reference but added to the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::PaleGreen - - - HideEqual - - if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - - SwitchParameter - - - False - - - Show - - If specified, opens the output workbook. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - - - SwitchParameter - - - False - - - Confirm - - Prompts you for confirmation before running the cmdlet. - - - SwitchParameter - - - False - - - - Merge-Worksheet - - DifferenceObject - - Difference object to compare if a Worksheet is NOT being used for either half. Can't have a reference sheet and difference object. - - Object - - Object - - - None - - - DiffPrefix - - If there isn't a filename to use to label data from the "Difference" side, DiffPrefix is used, it defaults to "=>" - - Object - - Object - - - => - - - OutputFile - - File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - - Name of Worksheet to output - if none specified will use the reference Worksheet name. - - Object - - Object - - - Sheet1 - - - ReferenceObject - - Reference object to compare if a Worksheet is NOT being used. Reference object can combine with a difference sheet or difference object - - Object - - Object - - - None - - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - - Properties to exclude from the the search - supports wildcards. - - Object - - Object - - - None - - - Key - - Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - - Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - - Sets the background color for changed rows. - - Object - - Object - - - [System.Drawing.Color]::Orange - - - DeleteBackgroundColor - - Sets the background color for rows in the reference but deleted from the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::LightPink - - - AddBackgroundColor - - Sets the background color for rows not in the reference but added to the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::PaleGreen - - - HideEqual - - if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - - SwitchParameter - - - False - - - Show - - If specified, opens the output workbook. - - - SwitchParameter - - - False - - - WhatIf - - Shows what would happen if the cmdlet runs. The cmdlet is not run. - + None + + + WorksheetName + + Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) + + Object - SwitchParameter + Object - False + Sheet1 - - Confirm - - Prompts you for confirmation before running the cmdlet. - + + Startrow + + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) + + Int32 - SwitchParameter + Int32 - False + 1 Referencefile - + First Excel file to compare. You can compare two Excel files or two other objects or a reference obhct against a difference file, but not a reference file against an object. works with the following parameter sets * A = Compare two files default headers * B = Compare two files user supplied headers * C = Compare two files headers P1, P2, P3 etc - + Object Object @@ -15931,13 +14877,13 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Differencefile - + Second Excel file to compare. Works with paramter sets A,B,C as well as the following * D = Compare two objects; * E = Compare one object one file that uses default headers * F = Compare one object one file that uses user supplied headers * G = Compare one object one file that uses headers P1, P2, P3 etc - + Object Object @@ -15947,9 +14893,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit WorksheetName - + Name(s) of Worksheets to compare. Applies to all parameter sets EXCEPT D which is two objects (no sheets) - + Object Object @@ -15959,9 +14905,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Startrow - + The row from where we start to import data, all rows above the StartRow are disregarded. By default this is the first row. Applies to all sets EXCEPT D which is two objects (no sheets, so no start row ) - + Int32 Int32 @@ -15969,237 +14915,153 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit 1 - + Headername - + Specifies custom property names to use, instead of the values defined in the column headers of the Start Row. Works with the following parameter sets: * B 2 sheets with user supplied headers * F Compare object + sheet - - String[] - - String[] - - - None - - - NoHeader - + + ```yaml + Type: String[] + Parameter Sets: B, F + Aliases: + Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False + + ### -NoHeader Automatically generate property names (P1, P2, P3, ..) instead of using the values the top row of the sheet. Works with parameter sets + * C 2 sheets with headers of P1, P2, P3 ... * G Compare object + sheet - - SwitchParameter - - SwitchParameter - - - False - - - ReferenceObject - + + yaml Type: SwitchParameter Parameter Sets: C, G Aliases: + Required: True Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False + + ### -ReferenceObject + Reference object to compare if a Worksheet is NOT being used. Reference object can combine with a difference sheet or difference object - - Object - - Object - - - None - - - DifferenceObject - + + yaml Type: Object Parameter Sets: G, F, E, D Aliases: RefObject + Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False + + ### -DifferenceObject + Difference object to compare if a Worksheet is NOT being used for either half. Can't have a reference sheet and difference object. - - Object - - Object - - - None - - - DiffPrefix - - If there isn't a filename to use to label data from the "Difference" side, DiffPrefix is used, it defaults to "=>" - - Object - - Object - - - => - - - OutputFile - + + yaml Type: Object Parameter Sets: D Aliases: DiffObject + Required: True Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False + + ### -DiffPrefix + + If there isn't a filename to use to label data from the "Difference" side, DiffPrefix is used, it defaults to "=&gt;" + + yaml Type: Object Parameter Sets: G, F, E, D Aliases: + Required: False Position: 3 Default value: => Accept pipeline input: False Accept wildcard characters: False + + ### -OutputFile + File to hold merged data. - - Object - - Object - - - None - - - OutputSheetName - + + yaml Type: Object Parameter Sets: (All) Aliases: OutFile + Required: False Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False + + ### -OutputSheetName + Name of Worksheet to output - if none specified will use the reference Worksheet name. - - Object - - Object - - - Sheet1 - - - Property - - Properties to include in the DIFF - supports wildcards, default is "*". - - Object - - Object - - - * - - - ExcludeProperty - + + yaml Type: Object Parameter Sets: (All) Aliases: OutSheet + Required: False Position: 5 Default value: Sheet1 Accept pipeline input: False Accept wildcard characters: False + + ### -Property + + Properties to include in the DIFF - supports wildcards, default is "\*". + + yaml Type: Object Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: * Accept pipeline input: False Accept wildcard characters: False + + ### -ExcludeProperty + Properties to exclude from the the search - supports wildcards. - - Object - - Object - - - None - - - Key - + + yaml Type: Object Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False + + ### -Key + Name of a column which is unique used to pair up rows from the refence and difference side, default is "Name". - - Object - - Object - - - Name - - - KeyFontColor - + + yaml Type: Object Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: Name Accept pipeline input: False Accept wildcard characters: False + + ### -KeyFontColor + Sets the font color for the "key" field; this means you can filter by color to get only changed rows. - - Object - - Object - - - [System.Drawing.Color]::DarkRed - - - ChangeBackgroundColor - + + yaml Type: Object Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: [System.Drawing.Color]::DarkRed Accept pipeline input: False Accept wildcard characters: False + + ### -ChangeBackgroundColor + Sets the background color for changed rows. - - Object - - Object - - - [System.Drawing.Color]::Orange - - - DeleteBackgroundColor - + + yaml Type: Object Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: [System.Drawing.Color]::Orange Accept pipeline input: False Accept wildcard characters: False + + ### -DeleteBackgroundColor + Sets the background color for rows in the reference but deleted from the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::LightPink - - - AddBackgroundColor - + + yaml Type: Object Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: [System.Drawing.Color]::LightPink Accept pipeline input: False Accept wildcard characters: False + + ### -AddBackgroundColor + Sets the background color for rows not in the reference but added to the difference sheet. - - Object - - Object - - - [System.Drawing.Color]::PaleGreen - - - HideEqual - + + yaml Type: Object Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: [System.Drawing.Color]::PaleGreen Accept pipeline input: False Accept wildcard characters: False + + ### -HideEqual + if specified, hides the rows in the spreadsheet that are equal and only shows changes, added or deleted rows. - - SwitchParameter - - SwitchParameter - - - False - - - Passthru - - If specified, outputs the data to the pipeline (you can add -WhatIf so the command only outputs to the pipeline). - - SwitchParameter - - SwitchParameter - - - False - - - Show - + + yaml Type: SwitchParameter Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False + + ### -Passthru + + If specified, outputs the data to the pipeline \(you can add -WhatIf so the command only outputs to the pipeline\). + + yaml Type: SwitchParameter Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False + + ### -Show + If specified, opens the output workbook. - - SwitchParameter - - SwitchParameter - - - False - - - WhatIf - + + yaml Type: SwitchParameter Parameter Sets: (All) Aliases: + Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False + + ### -WhatIf + Shows what would happen if the cmdlet runs. The cmdlet is not run. - - SwitchParameter - - SwitchParameter - - - False - - - Confirm - + + yaml Type: SwitchParameter Parameter Sets: (All) Aliases: wi + Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False + + ### -Confirm + Prompts you for confirmation before running the cmdlet. - - SwitchParameter + + yaml Type: SwitchParameter Parameter Sets: (All) Aliases: cf + Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` + + - SwitchParameter + - False + None @@ -16244,7 +15106,7 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Online Version: - https://github.com/dfinke/ImportExcel + @@ -16265,9 +15127,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit New-ConditionalFormattingIconSet Range - + The range of cells that the conditional format applies to. - + Object Object @@ -16277,9 +15139,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit ConditionalFormat - + The type of rule: one of "ThreeIconSet","FourIconSet" or "FiveIconSet" - + Object Object @@ -16289,9 +15151,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Reverse - + Use the icons in the reverse order. - + SwitchParameter @@ -16303,9 +15165,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Range - + The range of cells that the conditional format applies to. - + Object Object @@ -16315,9 +15177,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit ConditionalFormat - + The type of rule: one of "ThreeIconSet","FourIconSet" or "FiveIconSet" - + Object Object @@ -16327,9 +15189,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit Reverse - + Use the icons in the reverse order. - + SwitchParameter SwitchParameter @@ -16358,11 +15220,11 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show - Add-Add-ConditionalFormatting + Online Version: - New-ConditionalText + Add-Add-ConditionalFormatting @@ -16378,16 +15240,16 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show Some Conditional formatting rules don't apply styles to a cell (IconSets and Databars); some take two parameters (Between); some take none (ThisWeek, ContainsErrors, AboveAverage etc).The others take a single parameter (Top, BottomPercent, GreaterThan, Contains etc). - This command creates an object to describe the last two categories, which can then be passed to Export-Excel. + This command creates an object to describe the last two categories, which can then be passed to Export-Excel. New-ConditionalText Text - + The text (or other value) to use in the rule. Note that Equals, GreaterThan/LessThan rules require text to wrapped in double quotes. - + Object Object @@ -16397,9 +15259,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show ConditionalTextColor - + The font color for the cell - by default: "DarkRed". - + Object Object @@ -16409,9 +15271,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show BackgroundColor - + The fill color for the cell - by default: "LightPink". - + Object Object @@ -16421,9 +15283,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show Range - + The range of cells that the conditional format applies to; if none is specified the range will be apply to all the data in the sheet. - + String String @@ -16433,9 +15295,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show PatternType - + The background pattern for the cell - by default: "Solid" - + None Solid @@ -16466,9 +15328,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show ConditionalType - + One of the supported rules; by default "ContainsText" is selected. - + Object Object @@ -16481,9 +15343,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show Text - + The text (or other value) to use in the rule. Note that Equals, GreaterThan/LessThan rules require text to wrapped in double quotes. - + Object Object @@ -16493,9 +15355,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show ConditionalTextColor - + The font color for the cell - by default: "DarkRed". - + Object Object @@ -16505,9 +15367,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show BackgroundColor - + The fill color for the cell - by default: "LightPink". - + Object Object @@ -16517,9 +15379,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show Range - + The range of cells that the conditional format applies to; if none is specified the range will be apply to all the data in the sheet. - + String String @@ -16529,9 +15391,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show PatternType - + The background pattern for the cell - by default: "Solid" - + ExcelFillStyle ExcelFillStyle @@ -16541,9 +15403,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show ConditionalType - + One of the supported rules; by default "ContainsText" is selected. - + Object Object @@ -16574,18 +15436,18 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalTest $ct -show PS\> $ct2 = New-ConditionalText -Range $worksheet.Names\["FinishPosition"\].Address -ConditionalType LessThanOrEqual -Text 3 -ConditionalTextColor Red -BackgroundColor White PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show - This builds on the previous example, and specifies a condition of <=3 with a format of red text on a white background; this applies to a named range "Finish Position". + This builds on the previous example, and specifies a condition of \&lt;=3 with a format of red text on a white background; this applies to a named range "Finish Position". The range could be written -Range "C:C" to specify a named column, or -Range "C2:C102" to specify certain cells in the column. - Add-ConditionalFormatting + Online Version: - New-ConditionalFormattingIconSet + Add-ConditionalFormatting @@ -16607,9 +15469,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -showNew-ExcelChartDefinition Title - + The title for the chart. - + Object Object @@ -16619,9 +15481,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show RowOffSetPixels - + Offset to position the chart by a fraction of a row. - + Object Object @@ -16631,9 +15493,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Column - + Column position of the top left corner of the chart. 0 places it at the edge of the sheet, 1 to the right of column A and so on. - + Object Object @@ -16643,9 +15505,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ColumnOffSetPixels - + Offset to position the chart by a fraction of a column. - + Object Object @@ -16655,9 +15517,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show LegendPosition - + Location of the key, either "Left", "Right", "Top", "Bottom" or "TopRight". - + Top Left @@ -16674,9 +15536,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show LegendSize - + Font size for the key. - + Object Object @@ -16686,9 +15548,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show SeriesHeader - + Specifies explicit name(s) for the data series, which will appear in the legend/key - + Object Object @@ -16698,9 +15560,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -16710,9 +15572,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisTitleText - + Specifies a title for the X-axis. - + String String @@ -16722,9 +15584,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisTitleSize - + Sets the font size for the axis title. - + Object Object @@ -16734,9 +15596,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers along the X-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers along the X-axis. + String String @@ -16746,9 +15608,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Header - + No longer used. This may be removed in future versions. - + Object Object @@ -16758,9 +15620,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMajorUnit - + Spacing for the major gridlines / tick marks along the X-axis. - + Object Object @@ -16770,9 +15632,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMinorUnit - + Spacing for the minor gridlines / tick marks along the X-axis. - + Object Object @@ -16782,9 +15644,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMaxValue - + Maximum value for the scale along the X-axis. - + Object Object @@ -16794,9 +15656,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMinValue - + Minimum value for the scale along the X-axis. - + Object Object @@ -16806,9 +15668,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisPosition - + Position for the X-axis ("Top" or" Bottom"). - + Left Bottom @@ -16824,9 +15686,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisTitleText - + Specifies a title for the Y-axis. - + String String @@ -16836,9 +15698,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisTitleSize - + Sets the font size for the Y-axis title. - + Object Object @@ -16848,9 +15710,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers on the Y-axis - + + A number formatting string, like "\#,\#\#0.00", for numbers on the Y-axis + String String @@ -16860,9 +15722,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMajorUnit - + Spacing for the major gridlines / tick marks on the Y-axis. - + Object Object @@ -16872,9 +15734,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMinorUnit - + Spacing for the minor gridlines / tick marks on the Y-axis. - + Object Object @@ -16884,9 +15746,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ChartType - + One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked". - + Area Line @@ -16971,9 +15833,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMaxValue - + Maximum value on the Y-axis. - + Object Object @@ -16983,9 +15845,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMinValue - + Minimum value on the Y-axis. - + Object Object @@ -16995,9 +15857,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisPosition - + Position for the Y-axis ("Left" or "Right"). - + Left Bottom @@ -17013,9 +15875,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ChartTrendLine - + Superimposes one of Excel's trenline types on the chart. - + Exponential Linear @@ -17033,9 +15895,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XRange - + The range of cells containing values for the X-Axis - usually labels. - + Object Object @@ -17045,9 +15907,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YRange - + The range(s) of cells holding values for the Y-Axis - usually "data". - + Object Object @@ -17057,9 +15919,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Width - + Width of the chart in pixels. Defaults to 500. - + Object Object @@ -17069,9 +15931,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Height - + Height of the chart in pixels. Defaults to 350. - + Object Object @@ -17081,9 +15943,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Row - + Row position of the top left corner of the chart. 0 places it at the top of the sheet, 1 below row 1 and so on. - + Object Object @@ -17093,9 +15955,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show LegendBold - + Sets the key in bold type. - + SwitchParameter @@ -17104,9 +15966,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show NoLegend - + If specified, turns off display of the key. If you only have one data series it may be preferable to use the title to say what the chart is. - + SwitchParameter @@ -17115,9 +15977,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ShowCategory - + Attaches a category label in charts which support this. - + SwitchParameter @@ -17126,9 +15988,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ShowPercent - + Attaches a percentage label in charts which support this. - + SwitchParameter @@ -17137,9 +15999,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show TitleBold - + Sets the title in bold face. - + SwitchParameter @@ -17148,9 +16010,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisTitleBold - + Sets the X-axis title in bold face. - + SwitchParameter @@ -17159,9 +16021,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisTitleBold - + Sets the Y-axis title in bold face. - + SwitchParameter @@ -17173,9 +16035,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Title - + The title for the chart. - + Object Object @@ -17185,9 +16047,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Header - + No longer used. This may be removed in future versions. - + Object Object @@ -17197,9 +16059,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ChartType - + One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked". - + eChartType eChartType @@ -17209,9 +16071,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ChartTrendLine - + Superimposes one of Excel's trenline types on the chart. - + eTrendLine[] eTrendLine[] @@ -17221,9 +16083,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XRange - + The range of cells containing values for the X-Axis - usually labels. - + Object Object @@ -17233,9 +16095,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YRange - + The range(s) of cells holding values for the Y-Axis - usually "data". - + Object Object @@ -17245,9 +16107,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Width - + Width of the chart in pixels. Defaults to 500. - + Object Object @@ -17257,9 +16119,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Height - + Height of the chart in pixels. Defaults to 350. - + Object Object @@ -17269,9 +16131,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Row - + Row position of the top left corner of the chart. 0 places it at the top of the sheet, 1 below row 1 and so on. - + Object Object @@ -17281,9 +16143,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show RowOffSetPixels - + Offset to position the chart by a fraction of a row. - + Object Object @@ -17293,9 +16155,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show Column - + Column position of the top left corner of the chart. 0 places it at the edge of the sheet, 1 to the right of column A and so on. - + Object Object @@ -17305,9 +16167,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ColumnOffSetPixels - + Offset to position the chart by a fraction of a column. - + Object Object @@ -17317,9 +16179,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show LegendPosition - + Location of the key, either "Left", "Right", "Top", "Bottom" or "TopRight". - + eLegendPosition eLegendPosition @@ -17329,9 +16191,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show LegendSize - + Font size for the key. - + Object Object @@ -17341,9 +16203,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show LegendBold - + Sets the key in bold type. - + SwitchParameter SwitchParameter @@ -17353,9 +16215,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show NoLegend - + If specified, turns off display of the key. If you only have one data series it may be preferable to use the title to say what the chart is. - + SwitchParameter SwitchParameter @@ -17365,9 +16227,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ShowCategory - + Attaches a category label in charts which support this. - + SwitchParameter SwitchParameter @@ -17377,9 +16239,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show ShowPercent - + Attaches a percentage label in charts which support this. - + SwitchParameter SwitchParameter @@ -17389,9 +16251,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show SeriesHeader - + Specifies explicit name(s) for the data series, which will appear in the legend/key - + Object Object @@ -17401,9 +16263,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show TitleBold - + Sets the title in bold face. - + SwitchParameter SwitchParameter @@ -17413,9 +16275,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show TitleSize - + Sets the point size for the title. - + Int32 Int32 @@ -17425,9 +16287,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisTitleText - + Specifies a title for the X-axis. - + String String @@ -17437,9 +16299,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisTitleBold - + Sets the X-axis title in bold face. - + SwitchParameter SwitchParameter @@ -17449,9 +16311,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisTitleSize - + Sets the font size for the axis title. - + Object Object @@ -17461,9 +16323,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers along the X-axis. - + + A number formatting string, like "\#,\#\#0.00", for numbers along the X-axis. + String String @@ -17473,9 +16335,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMajorUnit - + Spacing for the major gridlines / tick marks along the X-axis. - + Object Object @@ -17485,9 +16347,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMinorUnit - + Spacing for the minor gridlines / tick marks along the X-axis. - + Object Object @@ -17497,9 +16359,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMaxValue - + Maximum value for the scale along the X-axis. - + Object Object @@ -17509,9 +16371,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XMinValue - + Minimum value for the scale along the X-axis. - + Object Object @@ -17521,9 +16383,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show XAxisPosition - + Position for the X-axis ("Top" or" Bottom"). - + eAxisPosition eAxisPosition @@ -17533,9 +16395,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisTitleText - + Specifies a title for the Y-axis. - + String String @@ -17545,9 +16407,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisTitleBold - + Sets the Y-axis title in bold face. - + SwitchParameter SwitchParameter @@ -17557,9 +16419,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisTitleSize - + Sets the font size for the Y-axis title. - + Object Object @@ -17569,9 +16431,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisNumberformat - - A number formatting string, like "#,##0.00", for numbers on the Y-axis - + + A number formatting string, like "\#,\#\#0.00", for numbers on the Y-axis + String String @@ -17581,9 +16443,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMajorUnit - + Spacing for the major gridlines / tick marks on the Y-axis. - + Object Object @@ -17593,9 +16455,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMinorUnit - + Spacing for the minor gridlines / tick marks on the Y-axis. - + Object Object @@ -17605,9 +16467,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMaxValue - + Maximum value on the Y-axis. - + Object Object @@ -17617,9 +16479,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YMinValue - + Minimum value on the Y-axis. - + Object Object @@ -17629,9 +16491,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show YAxisPosition - + Position for the Y-axis ("Left" or "Right"). - + eAxisPosition eAxisPosition @@ -17657,7 +16519,12 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin - + + + Online Version: + + + @@ -17677,10 +16544,10 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin New-PivotTableDefinition PivotTableName - + Name for the new pivot table This command previously had a typo - and has an alias to avoid breaking scripts This will be removed in a future release - + Object Object @@ -17690,9 +16557,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin SourceWorkSheet - + Worksheet where the data is found - + Object Object @@ -17702,9 +16569,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin SourceRange - + Address range in the worksheet e.g "A10:F20" - the first row must contain the column names to pivot by: if the range is not specified the whole source sheet will be used. - + Object Object @@ -17714,9 +16581,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotRows - + Fields to set as rows in the PivotTable - + Object Object @@ -17726,9 +16593,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotData - + A hash-table in form "FieldName"="Function", where function is one of Average, Count, CountNums, Max, Min, Product, None, StdDev, StdDevP, Sum, Var, VarP - + Hashtable Hashtable @@ -17738,9 +16605,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotColumns - + Fields to set as columns in the PivotTable - + Object Object @@ -17750,9 +16617,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotFilter - + Fields to use to filter in the PivotTable - + Object Object @@ -17762,9 +16629,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotDataToColumn - + If there are multiple datasets in a PivotTable, by default they are shown seperatate rows under the given row heading; this switch makes them seperate columns. - + SwitchParameter @@ -17773,9 +16640,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotTotals - + By default PivotTables have Totals for each Row (on the right) and for each column at the bottom. This allows just one or neither to be selected. - + String String @@ -17785,9 +16652,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin NoTotalsInPivot - + Included for compatibility - equivalent to -PivotTotals "None" - + SwitchParameter @@ -17796,9 +16663,21 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupDateRow - - The name of a row field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) - + + The name of a row field which should be grouped by parts of the date/time (ignored if GroupDatePart is not specified) + + String + + String + + + None + + + GroupDateColumn + + The name of a column field which should be grouped by parts of the date/time (ignored if GroupDatePart is not specified) + String String @@ -17808,9 +16687,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupDatePart - + The Part(s) of the date to use in the grouping (ignored if GroupDateRow is not specified) - + Years Quarters @@ -17829,9 +16708,21 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericRow - + The name of a row field which should be grouped by Number (e.g 0-99, 100-199, 200-299 ) - + + String + + String + + + None + + + GroupNumericColumn + + The name of a column field which should be grouped by Number (e.g 0-99, 100-199, 200-299 ) + String String @@ -17841,9 +16732,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericMin - + The starting point for grouping - + Double Double @@ -17853,9 +16744,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericMax - + The endpoint for grouping - + Double Double @@ -17865,9 +16756,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericInterval - + The interval for grouping - + Double Double @@ -17877,9 +16768,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotNumberFormat - + Number format to apply to the data cells in the PivotTable - + String String @@ -17889,9 +16780,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotTableStyle - + Apply a table style to the PivotTable - + None Custom @@ -17965,9 +16856,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotChartDefinition - + Use a chart definition instead of specifying chart settings one by one - + Object Object @@ -17977,9 +16868,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin Activate - + If there is already content in the workbook the sheet with the PivotTable will not be active UNLESS Activate is specified - + SwitchParameter @@ -17991,10 +16882,10 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin New-PivotTableDefinition PivotTableName - + Name for the new pivot table This command previously had a typo - and has an alias to avoid breaking scripts This will be removed in a future release - + Object Object @@ -18004,9 +16895,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin SourceWorkSheet - + Worksheet where the data is found - + Object Object @@ -18016,9 +16907,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin SourceRange - + Address range in the worksheet e.g "A10:F20" - the first row must contain the column names to pivot by: if the range is not specified the whole source sheet will be used. - + Object Object @@ -18028,9 +16919,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotRows - + Fields to set as rows in the PivotTable - + Object Object @@ -18040,9 +16931,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotData - + A hash-table in form "FieldName"="Function", where function is one of Average, Count, CountNums, Max, Min, Product, None, StdDev, StdDevP, Sum, Var, VarP - + Hashtable Hashtable @@ -18052,9 +16943,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotColumns - + Fields to set as columns in the PivotTable - + Object Object @@ -18064,9 +16955,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotFilter - + Fields to use to filter in the PivotTable - + Object Object @@ -18076,9 +16967,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotDataToColumn - + If there are multiple datasets in a PivotTable, by default they are shown seperatate rows under the given row heading; this switch makes them seperate columns. - + SwitchParameter @@ -18087,9 +16978,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotTotals - + By default PivotTables have Totals for each Row (on the right) and for each column at the bottom. This allows just one or neither to be selected. - + String String @@ -18099,9 +16990,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin NoTotalsInPivot - + Included for compatibility - equivalent to -PivotTotals "None" - + SwitchParameter @@ -18110,9 +17001,21 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupDateRow - - The name of a row field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) - + + The name of a row field which should be grouped by parts of the date/time (ignored if GroupDatePart is not specified) + + String + + String + + + None + + + GroupDateColumn + + The name of a column field which should be grouped by parts of the date/time (ignored if GroupDatePart is not specified) + String String @@ -18122,9 +17025,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupDatePart - + The Part(s) of the date to use in the grouping (ignored if GroupDateRow is not specified) - + Years Quarters @@ -18143,9 +17046,21 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericRow - + The name of a row field which should be grouped by Number (e.g 0-99, 100-199, 200-299 ) - + + String + + String + + + None + + + GroupNumericColumn + + The name of a column field which should be grouped by Number (e.g 0-99, 100-199, 200-299 ) + String String @@ -18155,9 +17070,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericMin - + The starting point for grouping - + Double Double @@ -18167,9 +17082,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericMax - + The endpoint for grouping - + Double Double @@ -18179,9 +17094,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericInterval - + The interval for grouping - + Double Double @@ -18191,9 +17106,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotNumberFormat - + Number format to apply to the data cells in the PivotTable - + String String @@ -18203,9 +17118,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotTableStyle - + Apply a table style to the PivotTable - + None Custom @@ -18279,9 +17194,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin IncludePivotChart - + If specified a chart Will be included. - + SwitchParameter @@ -18290,9 +17205,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartTitle - + Optional title for the pivot chart, by default the title omitted. - + String String @@ -18302,9 +17217,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartHeight - + Height of the chart in Pixels (400 by default) - + Int32 Int32 @@ -18314,9 +17229,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartWidth - + Width of the chart in Pixels (600 by default) - + Int32 Int32 @@ -18326,9 +17241,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartRow - + Cell position of the top left corner of the chart, there will be this number of rows above the top edge of the chart (default is 0, chart starts at top edge of row 1). - + Int32 Int32 @@ -18338,9 +17253,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartColumn - + Cell position of the top left corner of the chart, there will be this number of cells to the left of the chart (default is 4, chart starts at left edge of column E) - + Int32 Int32 @@ -18350,9 +17265,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartRowOffSetPixels - + Vertical offset of the chart from the cell corner. - + Int32 Int32 @@ -18362,9 +17277,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartColumnOffSetPixels - + Horizontal offset of the chart from the cell corner. - + Int32 Int32 @@ -18374,9 +17289,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartType - + Type of chart - + Area Line @@ -18461,9 +17376,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin NoLegend - + If specified hides the chart legend - + SwitchParameter @@ -18472,9 +17387,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ShowCategory - + if specified attaches the category to slices in a pie chart : not supported on all chart types, this may give errors if applied to an unsupported type. - + SwitchParameter @@ -18483,9 +17398,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ShowPercent - + If specified attaches percentages to slices in a pie chart. - + SwitchParameter @@ -18494,9 +17409,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin Activate - + If there is already content in the workbook the sheet with the PivotTable will not be active UNLESS Activate is specified - + SwitchParameter @@ -18508,10 +17423,10 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotTableName - + Name for the new pivot table This command previously had a typo - and has an alias to avoid breaking scripts This will be removed in a future release - + Object Object @@ -18521,9 +17436,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin SourceWorkSheet - + Worksheet where the data is found - + Object Object @@ -18533,9 +17448,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin SourceRange - + Address range in the worksheet e.g "A10:F20" - the first row must contain the column names to pivot by: if the range is not specified the whole source sheet will be used. - + Object Object @@ -18545,9 +17460,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotRows - + Fields to set as rows in the PivotTable - + Object Object @@ -18557,9 +17472,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotData - + A hash-table in form "FieldName"="Function", where function is one of Average, Count, CountNums, Max, Min, Product, None, StdDev, StdDevP, Sum, Var, VarP - + Hashtable Hashtable @@ -18569,9 +17484,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotColumns - + Fields to set as columns in the PivotTable - + Object Object @@ -18581,9 +17496,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotFilter - + Fields to use to filter in the PivotTable - + Object Object @@ -18593,9 +17508,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotDataToColumn - + If there are multiple datasets in a PivotTable, by default they are shown seperatate rows under the given row heading; this switch makes them seperate columns. - + SwitchParameter SwitchParameter @@ -18605,9 +17520,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotTotals - + By default PivotTables have Totals for each Row (on the right) and for each column at the bottom. This allows just one or neither to be selected. - + String String @@ -18617,9 +17532,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin NoTotalsInPivot - + Included for compatibility - equivalent to -PivotTotals "None" - + SwitchParameter SwitchParameter @@ -18629,9 +17544,21 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupDateRow - - The name of a row field which should be grouped by parts of the date/time (ignored if GroupDateRow is not specified) - + + The name of a row field which should be grouped by parts of the date/time (ignored if GroupDatePart is not specified) + + String + + String + + + None + + + GroupDateColumn + + The name of a column field which should be grouped by parts of the date/time (ignored if GroupDatePart is not specified) + String String @@ -18641,9 +17568,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupDatePart - + The Part(s) of the date to use in the grouping (ignored if GroupDateRow is not specified) - + eDateGroupBy[] eDateGroupBy[] @@ -18653,9 +17580,21 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericRow - + The name of a row field which should be grouped by Number (e.g 0-99, 100-199, 200-299 ) - + + String + + String + + + None + + + GroupNumericColumn + + The name of a column field which should be grouped by Number (e.g 0-99, 100-199, 200-299 ) + String String @@ -18665,9 +17604,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericMin - + The starting point for grouping - + Double Double @@ -18677,9 +17616,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericMax - + The endpoint for grouping - + Double Double @@ -18689,9 +17628,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin GroupNumericInterval - + The interval for grouping - + Double Double @@ -18701,9 +17640,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotNumberFormat - + Number format to apply to the data cells in the PivotTable - + String String @@ -18713,9 +17652,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotTableStyle - + Apply a table style to the PivotTable - + TableStyles TableStyles @@ -18725,9 +17664,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin PivotChartDefinition - + Use a chart definition instead of specifying chart settings one by one - + Object Object @@ -18737,9 +17676,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin IncludePivotChart - + If specified a chart Will be included. - + SwitchParameter SwitchParameter @@ -18749,9 +17688,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartTitle - + Optional title for the pivot chart, by default the title omitted. - + String String @@ -18761,9 +17700,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartHeight - + Height of the chart in Pixels (400 by default) - + Int32 Int32 @@ -18773,9 +17712,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartWidth - + Width of the chart in Pixels (600 by default) - + Int32 Int32 @@ -18785,9 +17724,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartRow - + Cell position of the top left corner of the chart, there will be this number of rows above the top edge of the chart (default is 0, chart starts at top edge of row 1). - + Int32 Int32 @@ -18797,9 +17736,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartColumn - + Cell position of the top left corner of the chart, there will be this number of cells to the left of the chart (default is 4, chart starts at left edge of column E) - + Int32 Int32 @@ -18809,9 +17748,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartRowOffSetPixels - + Vertical offset of the chart from the cell corner. - + Int32 Int32 @@ -18821,9 +17760,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartColumnOffSetPixels - + Horizontal offset of the chart from the cell corner. - + Int32 Int32 @@ -18833,9 +17772,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ChartType - + Type of chart - + eChartType eChartType @@ -18845,9 +17784,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin NoLegend - + If specified hides the chart legend - + SwitchParameter SwitchParameter @@ -18857,9 +17796,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ShowCategory - + if specified attaches the category to slices in a pie chart : not supported on all chart types, this may give errors if applied to an unsupported type. - + SwitchParameter SwitchParameter @@ -18869,9 +17808,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin ShowPercent - + If specified attaches percentages to slices in a pie chart. - + SwitchParameter SwitchParameter @@ -18881,9 +17820,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin Activate - + If there is already content in the workbook the sheet with the PivotTable will not be active UNLESS Activate is specified - + SwitchParameter SwitchParameter @@ -18912,7 +17851,12 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< - + + + Online Version: + + + @@ -18933,9 +17877,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< Open-ExcelPackage Path - + The path to the file to open. - + Object Object @@ -18945,9 +17889,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< Password - + The password for a protected worksheet, as a [normal] string (not a secure string). - + String String @@ -18957,9 +17901,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< KillExcel - + If specified, any running instances of Excel will be terminated before opening the file. This may result in lost work, so should be used with caution. - + SwitchParameter @@ -18968,9 +17912,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< Create - + By default Open-ExcelPackage will only open an existing file; -Create instructs it to create a new file if required. - + SwitchParameter @@ -18982,9 +17926,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< Path - + The path to the file to open. - + Object Object @@ -18994,9 +17938,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< KillExcel - + If specified, any running instances of Excel will be terminated before opening the file. This may result in lost work, so should be used with caution. - + SwitchParameter SwitchParameter @@ -19006,9 +17950,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< Password - + The password for a protected worksheet, as a [normal] string (not a secure string). - + String String @@ -19018,9 +17962,9 @@ PS\> $excel = Export-Excel -Path .\test.xlsx -PivotTableDefinition $pt -Show< Create - + By default Open-ExcelPackage will only open an existing file; -Create instructs it to create a new file if required. - + SwitchParameter SwitchParameter @@ -19056,16 +18000,21 @@ PS\> $ws = Add-WorkSheet -ExcelPackage $excel -------------------------- EXAMPLE 2 -------------------------- - PS\> $excela= Open-ExcelPackage -path "$xlPath" -Password $password -PS\> $sheet1 = $excel.Workbook.Worksheetsa"sheet1" ] + PS\> $excel= Open-ExcelPackage -path "$xlPath" -Password $password +PS\> $sheet1 = $excel.Workbook.Worksheets["sheet1"] PS\> Set-ExcelRange -Range $sheet1.Cells ["E1:S1048576" ], $sheet1.Cells ["V1:V1048576" ] -NFormat ( [cultureinfo ]::CurrentCulture.DateTimeFormat.ShortDatePattern) PS\> Close-ExcelPackage $excel -Show - This will open the password protected file at $xlPath using the password stored in $Password. Sheet1 is selected and formatting applied to two blocks of the sheet; then the file is and saved and loaded into Excel. + This will open the password protected file at $xlPath using the password stored in $Password. Sheet1 is selected and formatting applied to two blocks of the sheet; then the file is saved and loaded into Excel. - + + + Online Version: + + + @@ -19082,9 +18031,9 @@ PS\> Close-ExcelPackage $excel -Show Remove-WorkSheet FullName - + The fully qualified path to the XLSX file(s) - + Object Object @@ -19094,9 +18043,9 @@ PS\> Close-ExcelPackage $excel -Show WorksheetName - + The worksheet to be removed (sheet1 by default) - + String[] String[] @@ -19106,9 +18055,9 @@ PS\> Close-ExcelPackage $excel -Show Show - + If specified the file will be opened in excel after the sheet is removed. - + SwitchParameter @@ -19117,9 +18066,9 @@ PS\> Close-ExcelPackage $excel -Show WhatIf - + Shows what would happen if the cmdlet runs. The cmdlet is not run. - + SwitchParameter @@ -19128,9 +18077,9 @@ PS\> Close-ExcelPackage $excel -Show Confirm - + Prompts you for confirmation before running the cmdlet. - + SwitchParameter @@ -19142,9 +18091,9 @@ PS\> Close-ExcelPackage $excel -Show FullName - + The fully qualified path to the XLSX file(s) - + Object Object @@ -19154,9 +18103,9 @@ PS\> Close-ExcelPackage $excel -Show WorksheetName - + The worksheet to be removed (sheet1 by default) - + String[] String[] @@ -19166,9 +18115,9 @@ PS\> Close-ExcelPackage $excel -Show Show - + If specified the file will be opened in excel after the sheet is removed. - + SwitchParameter SwitchParameter @@ -19178,9 +18127,9 @@ PS\> Close-ExcelPackage $excel -Show WhatIf - + Shows what would happen if the cmdlet runs. The cmdlet is not run. - + SwitchParameter SwitchParameter @@ -19190,9 +18139,9 @@ PS\> Close-ExcelPackage $excel -Show Confirm - + Prompts you for confirmation before running the cmdlet. - + SwitchParameter SwitchParameter @@ -19238,7 +18187,12 @@ PS\> Close-ExcelPackage $excel -Show - + + + Online Version: + + + @@ -19257,9 +18211,9 @@ PS\> Close-ExcelPackage $excel -Show Select-Worksheet ExcelPackage - + An object representing an ExcelPackage. - + ExcelPackage ExcelPackage @@ -19269,9 +18223,9 @@ PS\> Close-ExcelPackage $excel -Show WorksheetName - + The name of the worksheet "Sheet1" by default. - + String String @@ -19284,9 +18238,9 @@ PS\> Close-ExcelPackage $excel -Show Select-Worksheet ExcelWorkbook - + An Excel workbook to which the Worksheet will be added - a package contains one Workbook so you can use workbook or package as it suits. - + ExcelWorkbook ExcelWorkbook @@ -19296,9 +18250,9 @@ PS\> Close-ExcelPackage $excel -Show WorksheetName - + The name of the worksheet "Sheet1" by default. - + String String @@ -19311,9 +18265,9 @@ PS\> Close-ExcelPackage $excel -Show Select-Worksheet ExcelWorksheet - + An object representing an Excel worksheet. - + ExcelWorksheet ExcelWorksheet @@ -19326,9 +18280,9 @@ PS\> Close-ExcelPackage $excel -Show ExcelPackage - + An object representing an ExcelPackage. - + ExcelPackage ExcelPackage @@ -19338,9 +18292,9 @@ PS\> Close-ExcelPackage $excel -Show ExcelWorkbook - + An Excel workbook to which the Worksheet will be added - a package contains one Workbook so you can use workbook or package as it suits. - + ExcelWorkbook ExcelWorkbook @@ -19350,9 +18304,9 @@ PS\> Close-ExcelPackage $excel -Show WorksheetName - + The name of the worksheet "Sheet1" by default. - + String String @@ -19362,9 +18316,9 @@ PS\> Close-ExcelPackage $excel -Show ExcelWorksheet - + An object representing an Excel worksheet. - + ExcelWorksheet ExcelWorksheet @@ -19403,7 +18357,12 @@ PS\> Close-ExcelPackage $excel -Show - + + + Online Version: + + + @@ -19418,6 +18377,7 @@ PS\> Close-ExcelPackage $excel -Show This command takes a SQL statement and run it against a database connection; for the connection it accepts either * an object representing a session with a SQL server or ODBC database, or * a connection string to make a session (if -MSSQLServer is specified it uses the SQL Native client, + and -Connection can be a server name instead of a detailed connection string. Without this switch it uses ODBC) The command takes all the parameters of Export-Excel, except for -InputObject (alias TargetData); after fetching the data it calls Export-Excel with the data as the value of InputParameter and whichever of Export-Excel's parameters it was passed; for details of these parameters see the help for Export-Excel. @@ -19426,12 +18386,12 @@ PS\> Close-ExcelPackage $excel -Show Send-SQLDataToExcel Connection - + A database connection string to be used to create a database session; either * A Data source name written in the form DSN=ODBC_Data_Source_Name, or * A full ODBC or SQL Native Client Connection string, or * The name of a SQL server. - + Object Object @@ -19441,9 +18401,9 @@ PS\> Close-ExcelPackage $excel -Show SQL - + The SQL query to run against the session which was passed in -Session or set up from -Connection. - + String String @@ -19453,9 +18413,9 @@ PS\> Close-ExcelPackage $excel -Show QueryTimeout - + Override the default query time of 30 seconds. - + Int32 Int32 @@ -19465,9 +18425,9 @@ PS\> Close-ExcelPackage $excel -Show Force - + If specified Export-Excel will be called with parameters specified, even if there is no data to send - + SwitchParameter @@ -19479,12 +18439,12 @@ PS\> Close-ExcelPackage $excel -Show Send-SQLDataToExcel Connection - + A database connection string to be used to create a database session; either * A Data source name written in the form DSN=ODBC_Data_Source_Name, or * A full ODBC or SQL Native Client Connection string, or * The name of a SQL server. - + Object Object @@ -19494,9 +18454,9 @@ PS\> Close-ExcelPackage $excel -Show MsSQLserver - + Specifies the connection string is for SQL server, not ODBC. - + SwitchParameter @@ -19505,9 +18465,9 @@ PS\> Close-ExcelPackage $excel -Show DataBase - + Switches to a specific database on a SQL server. - + String String @@ -19517,9 +18477,9 @@ PS\> Close-ExcelPackage $excel -Show SQL - + The SQL query to run against the session which was passed in -Session or set up from -Connection. - + String String @@ -19529,9 +18489,9 @@ PS\> Close-ExcelPackage $excel -Show QueryTimeout - + Override the default query time of 30 seconds. - + Int32 Int32 @@ -19541,9 +18501,9 @@ PS\> Close-ExcelPackage $excel -Show Force - + If specified Export-Excel will be called with parameters specified, even if there is no data to send - + SwitchParameter @@ -19555,9 +18515,9 @@ PS\> Close-ExcelPackage $excel -Show Send-SQLDataToExcel Session - + An active ODBC Connection or SQL connection object representing a session with a database which will be queried to get the data . - + Object Object @@ -19567,9 +18527,9 @@ PS\> Close-ExcelPackage $excel -Show SQL - + The SQL query to run against the session which was passed in -Session or set up from -Connection. - + String String @@ -19579,9 +18539,9 @@ PS\> Close-ExcelPackage $excel -Show QueryTimeout - + Override the default query time of 30 seconds. - + Int32 Int32 @@ -19591,9 +18551,9 @@ PS\> Close-ExcelPackage $excel -Show Force - + If specified Export-Excel will be called with parameters specified, even if there is no data to send - + SwitchParameter @@ -19605,9 +18565,9 @@ PS\> Close-ExcelPackage $excel -Show Send-SQLDataToExcel QueryTimeout - + Override the default query time of 30 seconds. - + Int32 Int32 @@ -19617,9 +18577,9 @@ PS\> Close-ExcelPackage $excel -Show DataTable - + A System.Data.DataTable object containing the data to be inserted into the spreadsheet without running a query. This remains supported to avoid breaking older scripts, but if you have a DataTable object you can pass the it into Export-Excel using -InputObject. - + DataTable DataTable @@ -19629,9 +18589,9 @@ PS\> Close-ExcelPackage $excel -Show Force - + If specified Export-Excel will be called with parameters specified, even if there is no data to send - + SwitchParameter @@ -19643,12 +18603,12 @@ PS\> Close-ExcelPackage $excel -Show Connection - + A database connection string to be used to create a database session; either * A Data source name written in the form DSN=ODBC_Data_Source_Name, or * A full ODBC or SQL Native Client Connection string, or * The name of a SQL server. - + Object Object @@ -19658,9 +18618,9 @@ PS\> Close-ExcelPackage $excel -Show Session - + An active ODBC Connection or SQL connection object representing a session with a database which will be queried to get the data . - + Object Object @@ -19670,9 +18630,9 @@ PS\> Close-ExcelPackage $excel -Show MsSQLserver - + Specifies the connection string is for SQL server, not ODBC. - + SwitchParameter SwitchParameter @@ -19682,9 +18642,9 @@ PS\> Close-ExcelPackage $excel -Show DataBase - + Switches to a specific database on a SQL server. - + String String @@ -19694,9 +18654,9 @@ PS\> Close-ExcelPackage $excel -Show SQL - + The SQL query to run against the session which was passed in -Session or set up from -Connection. - + String String @@ -19706,9 +18666,9 @@ PS\> Close-ExcelPackage $excel -Show QueryTimeout - + Override the default query time of 30 seconds. - + Int32 Int32 @@ -19718,9 +18678,9 @@ PS\> Close-ExcelPackage $excel -Show DataTable - + A System.Data.DataTable object containing the data to be inserted into the spreadsheet without running a query. This remains supported to avoid breaking older scripts, but if you have a DataTable object you can pass the it into Export-Excel using -InputObject. - + DataTable DataTable @@ -19730,9 +18690,9 @@ PS\> Close-ExcelPackage $excel -Show Force - + If specified Export-Excel will be called with parameters specified, even if there is no data to send - + SwitchParameter SwitchParameter @@ -19763,7 +18723,7 @@ PS\> $Connection = "Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=$db PS\> $SQL="SELECT top 25 Name,Length From TestData ORDER BY Length DESC" PS\> Send-SQLDataToExcel -Connection $connection -SQL $sql -path .\demo1.xlsx -WorkSheetname "Sizes" -AutoSize - This creates an ODBC connection string to read from an Access file and a SQL Statement to extracts data from it, and sends the resulting data to a new worksheet + This creates an ODBC connection string to read from an Access file and a SQL Statement to extracts data from it, and sends the resulting data to a new worksheet @@ -19776,7 +18736,7 @@ PS\> $SQL="SELECT top 25 DriverName, Count(RaceDate) as Races, Count(Win) as PS\>Send-SQLDataToExcel -Connection $connection -SQL $sql -path .\demo2.xlsx -WorkSheetname "Winners" -AutoSize -AutoNameRange -ConditionalFormat @{DataBarColor="Blue"; Range="Wins"} - Similar to the previous example, this creates a connection string, this time for an Excel file, and runs a SQL statement to get a list of motor-racing results, outputting the resulting data to a new spreadsheet. The spreadsheet is formatted and a data bar added to show make the drivers' wins clearer. (The F1 results database is available from https://1drv.ms/x/s!AhfYu7-CJv4ehNdZWxJE9LMAX_N5sg ) + Similar to the previous example, this creates a connection string, this time for an Excel file, and runs a SQL statement to get a list of motor-racing results, outputting the resulting data to a new spreadsheet. The spreadsheet is formatted and a data bar added to show make the drivers' wins clearer. (The F1 results database is available from https://1drv.ms/x/s!AhfYu7-CJv4ehNdZWxJE9LMAX\_N5sg (https://1drv.ms/x/s!AhfYu7-CJv4ehNdZWxJE9LMAX_N5sg) \) @@ -19790,10 +18750,10 @@ PS\> $null = Get-SQL -Session F1 -excel -Connection $dbPath -sql $sql -Output PS\> Send-SQLDataToExcel -DataTable $Table -Path ".\demo3.xlsx" -WorkSheetname Gpwinners -autosize -TableName winners -TableStyle Light6 -show This uses Get-SQL (at least V1.1 - download from the PowerShell gallery with Install-Module -Name GetSQL - (note the function is Get-SQL the module is GetSQL without the "-" ) - Get-SQL simplifies making database connections and building /submitting SQL statements. Here Get-SQL uses the same SQL statement as before; -OutputVariable leaves a System.Data.DataTable object in $table and Send-SQLDataToExcel puts $table into the worksheet and sets it as an Excel table. The command is equivalent to running - PS> Export-Excel -inputObject $Table -Path ".\demo3.xlsx" -WorkSheetname Gpwinners -autosize -TableName winners -TableStyle Light6 -show - This is quicker than using PS> Get-SQL <parameters> | export-excel -ExcludeProperty rowerror,rowstate,table,itemarray,haserrors <parameters> - (the F1 results database is available from https://1drv.ms/x/s!AhfYu7-CJv4ehNdZWxJE9LMAX_N5sg ) + Get-SQL simplifies making database connections and building /submitting SQL statements. Here Get-SQL uses the same SQL statement as before; -OutputVariable leaves a System.Data.DataTable object in $table and Send-SQLDataToExcel puts $table into the worksheet and sets it as an Excel table. The command is equivalent to running + PS&gt; Export-Excel -inputObject $Table -Path ".\demo3.xlsx" -WorkSheetname Gpwinners -autosize -TableName winners -TableStyle Light6 -show + This is quicker than using PS&gt; Get-SQL \ \| export-excel -ExcludeProperty rowerror,rowstate,table,itemarray,haserrors \ + (the F1 results database is available from https://1drv.ms/x/s!AhfYu7-CJv4ehNdZWxJE9LMAX\_N5sg (https://1drv.ms/x/s!AhfYu7-CJv4ehNdZWxJE9LMAX_N5sg) \) @@ -19814,6 +18774,10 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem + + Online Version: + + Export-Excel @@ -19839,9 +18803,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Set-ExcelColumn ExcelPackage - + If specifying the worksheet by name, the ExcelPackage object which contains the worksheet also needs to be passed. - + ExcelPackage ExcelPackage @@ -19851,9 +18815,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Worksheetname - + The sheet to update can be given as a name or an Excel Worksheet object - this sets it by name. - + String String @@ -19863,9 +18827,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Column - + Column to fill down - the first column is 1. 0 will be interpreted as first empty column. - + Object Object @@ -19875,9 +18839,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StartRow - + First row to fill data in. - + Int32 Int32 @@ -19887,9 +18851,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - + A value, formula or scriptblock to fill in. A script block can use $worksheet, $row, $column [number], $columnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. - + Object Object @@ -19899,9 +18863,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Heading - + Optional column heading. - + Object Object @@ -19911,9 +18875,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" or "0.0E+0" etc. - + + Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" or "0.0E+0" etc. + Object Object @@ -19923,9 +18887,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the row. - + None Hair @@ -19950,9 +18914,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Colour for the text - if none specified it will be left as it it is. - + Object Object @@ -19962,9 +18926,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter @@ -19973,9 +18937,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter @@ -19984,9 +18948,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter @@ -19995,9 +18959,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + None Single @@ -20014,9 +18978,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -StrikeThru:$false to remove strike through. - + SwitchParameter @@ -20025,9 +18989,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or None). - + None Baseline @@ -20043,9 +19007,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -20055,9 +19019,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -20067,9 +19031,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -20079,9 +19043,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - "Solid" by default. - + None Solid @@ -20112,9 +19076,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -20124,9 +19088,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter @@ -20135,9 +19099,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. Default is "General". - + General Left @@ -20157,9 +19121,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + Top Center @@ -20176,9 +19140,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text; up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -20188,9 +19152,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoSize - + Attempt to auto-fit cells to the width their contents. - + SwitchParameter @@ -20199,9 +19163,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Width - + Set cells to a fixed width, ignored if -AutoSize is specified. - + Single Single @@ -20211,9 +19175,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoNameRange - + Set the inserted data to be a named range. - + SwitchParameter @@ -20222,9 +19186,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hide - + Hide the column. - + SwitchParameter @@ -20233,9 +19197,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Specified - + If specified, returns the range of cells which were affected. - + SwitchParameter @@ -20244,9 +19208,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PassThru - + If specified, return an object representing the Column, to allow further work to be done on it. - + SwitchParameter @@ -20258,9 +19222,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Set-ExcelColumn Worksheet - + This passes the worksheet object instead of passing a sheet name and an Excelpackage object. - + ExcelWorksheet ExcelWorksheet @@ -20270,9 +19234,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Column - + Column to fill down - the first column is 1. 0 will be interpreted as first empty column. - + Object Object @@ -20282,9 +19246,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StartRow - + First row to fill data in. - + Int32 Int32 @@ -20294,9 +19258,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - + A value, formula or scriptblock to fill in. A script block can use $worksheet, $row, $column [number], $columnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. - + Object Object @@ -20306,9 +19270,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Heading - + Optional column heading. - + Object Object @@ -20318,9 +19282,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" or "0.0E+0" etc. - + + Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" or "0.0E+0" etc. + Object Object @@ -20330,9 +19294,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the row. - + None Hair @@ -20357,9 +19321,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Colour for the text - if none specified it will be left as it it is. - + Object Object @@ -20369,9 +19333,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter @@ -20380,9 +19344,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter @@ -20391,9 +19355,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter @@ -20402,9 +19366,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + None Single @@ -20421,9 +19385,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -StrikeThru:$false to remove strike through. - + SwitchParameter @@ -20432,9 +19396,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or None). - + None Baseline @@ -20450,9 +19414,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -20462,9 +19426,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -20474,9 +19438,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -20486,9 +19450,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - "Solid" by default. - + None Solid @@ -20519,9 +19483,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -20531,9 +19495,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter @@ -20542,9 +19506,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. Default is "General". - + General Left @@ -20564,9 +19528,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + Top Center @@ -20583,9 +19547,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text; up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -20595,9 +19559,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoSize - + Attempt to auto-fit cells to the width their contents. - + SwitchParameter @@ -20606,9 +19570,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Width - + Set cells to a fixed width, ignored if -AutoSize is specified. - + Single Single @@ -20618,9 +19582,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoNameRange - + Set the inserted data to be a named range. - + SwitchParameter @@ -20629,9 +19593,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hide - + Hide the column. - + SwitchParameter @@ -20640,9 +19604,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Specified - + If specified, returns the range of cells which were affected. - + SwitchParameter @@ -20651,9 +19615,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PassThru - + If specified, return an object representing the Column, to allow further work to be done on it. - + SwitchParameter @@ -20665,9 +19629,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ExcelPackage - + If specifying the worksheet by name, the ExcelPackage object which contains the worksheet also needs to be passed. - + ExcelPackage ExcelPackage @@ -20677,9 +19641,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Worksheetname - + The sheet to update can be given as a name or an Excel Worksheet object - this sets it by name. - + String String @@ -20689,9 +19653,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Worksheet - + This passes the worksheet object instead of passing a sheet name and an Excelpackage object. - + ExcelWorksheet ExcelWorksheet @@ -20701,9 +19665,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Column - + Column to fill down - the first column is 1. 0 will be interpreted as first empty column. - + Object Object @@ -20713,9 +19677,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StartRow - + First row to fill data in. - + Int32 Int32 @@ -20725,9 +19689,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - + A value, formula or scriptblock to fill in. A script block can use $worksheet, $row, $column [number], $columnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. - + Object Object @@ -20737,9 +19701,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Heading - + Optional column heading. - + Object Object @@ -20749,9 +19713,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" or "0.0E+0" etc. - + + Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" or "0.0E+0" etc. + Object Object @@ -20761,9 +19725,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the row. - + ExcelBorderStyle ExcelBorderStyle @@ -20773,9 +19737,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Colour for the text - if none specified it will be left as it it is. - + Object Object @@ -20785,9 +19749,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter SwitchParameter @@ -20797,9 +19761,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter SwitchParameter @@ -20809,9 +19773,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter SwitchParameter @@ -20821,9 +19785,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + ExcelUnderLineType ExcelUnderLineType @@ -20833,9 +19797,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -StrikeThru:$false to remove strike through. - + SwitchParameter SwitchParameter @@ -20845,9 +19809,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or None). - + ExcelVerticalAlignmentFont ExcelVerticalAlignmentFont @@ -20857,9 +19821,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -20869,9 +19833,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -20881,9 +19845,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -20893,9 +19857,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - "Solid" by default. - + ExcelFillStyle ExcelFillStyle @@ -20905,9 +19869,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -20917,9 +19881,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter SwitchParameter @@ -20929,9 +19893,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. Default is "General". - + ExcelHorizontalAlignment ExcelHorizontalAlignment @@ -20941,9 +19905,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + ExcelVerticalAlignment ExcelVerticalAlignment @@ -20953,9 +19917,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text; up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -20965,9 +19929,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoSize - + Attempt to auto-fit cells to the width their contents. - + SwitchParameter SwitchParameter @@ -20977,9 +19941,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Width - + Set cells to a fixed width, ignored if -AutoSize is specified. - + Single Single @@ -20989,9 +19953,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoNameRange - + Set the inserted data to be a named range. - + SwitchParameter SwitchParameter @@ -21001,9 +19965,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hide - + Hide the column. - + SwitchParameter SwitchParameter @@ -21013,9 +19977,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Specified - + If specified, returns the range of cells which were affected. - + SwitchParameter SwitchParameter @@ -21025,9 +19989,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PassThru - + If specified, return an object representing the Column, to allow further work to be done on it. - + SwitchParameter SwitchParameter @@ -21077,7 +20041,7 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Here, $WS already contains a worksheet which holds counts of races won and fastest laps recorded by racing drivers (in columns C and E). Set-ExcelColumn specifies that Column 7 should have a heading of "WinsToFastLaps" and the data cells should contain =E2/C2 , =E3/C3 etc the new data cells should become a named range, which will also be named "WinsToFastLaps" and the column width will be set automatically. When a value begins with "=", it is treated as a formula. If value is a script block it will be evaluated, so here the string "=E$row/C$Row" will have the number of the current row inserted; see the value parameter for a list of variables which can be used. - Note than when evaluating an expression in a string, it is necessary to wrap it in $() so $row is valid but $($row+1) is needed. + Note than when evaluating an expression in a string, it is necessary to wrap it in $() so $row is valid but $($row+1) is needed. To preventVariables merging into other parts of the string, use the back tick "$columnName`4" will be "G4" - without the backtick the string will look for a variable named "columnName4" @@ -21087,7 +20051,7 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem In this example, the worksheet in $ws has partial links to Wikipedia pages in column B. The -Value parameter is a script block which outputs a string beginning "https..." and ending with the value of the cell at column B in the current row. - When given a valid URI, Set-ExcelColumn makes it a hyperlink. + When given a valid URI, Set-ExcelColumn makes it a hyperlink. The column will be autosized to fit the links. @@ -21099,7 +20063,12 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem - + + + Online Version: + + + @@ -21119,9 +20088,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Set-ExcelRange Range - + One or more row(s), Column(s) and/or block(s) of cells to format. - + Object Object @@ -21131,9 +20100,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WorkSheet - + The worksheet where the format is to be applied. - + ExcelWorksheet ExcelWorksheet @@ -21143,9 +20112,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" or "0.0E+0" etc. - + + Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" or "0.0E+0" etc. + Object Object @@ -21155,9 +20124,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the range. - + None Hair @@ -21182,9 +20151,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderColor - + Color of the border. - + Object Object @@ -21194,9 +20163,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderBottom - + Style for the bottom border. - + None Hair @@ -21221,9 +20190,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderTop - + Style for the top border. - + None Hair @@ -21248,9 +20217,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderLeft - + Style for the left border. - + None Hair @@ -21275,9 +20244,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderRight - + Style for the right border. - + None Hair @@ -21302,9 +20271,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Colour for the text - if none is specified it will be left as it is. - + Object Object @@ -21314,9 +20283,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - + Value for the cell. - + Object Object @@ -21326,9 +20295,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Formula - + Formula for the cell. - + Object Object @@ -21338,9 +20307,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ArrayFormula - + Specifies formula should be an array formula (a.k.a CSE [ctrl-shift-enter] formula). - + SwitchParameter @@ -21349,9 +20318,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ResetFont - + Clear Bold, Italic, StrikeThrough and Underline and set color to Black. - + SwitchParameter @@ -21360,9 +20329,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter @@ -21371,9 +20340,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter @@ -21382,9 +20351,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter @@ -21393,9 +20362,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + None Single @@ -21412,9 +20381,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -Strikethru:$false to remove Strike through - + SwitchParameter @@ -21423,9 +20392,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or none). - + None Baseline @@ -21441,9 +20410,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -21453,9 +20422,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -21465,9 +20434,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -21477,9 +20446,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - Solid by default. - + None Solid @@ -21510,9 +20479,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -21522,9 +20491,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter @@ -21533,9 +20502,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. default is 'General'. - + General Left @@ -21555,9 +20524,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + Top Center @@ -21574,9 +20543,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text; up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -21586,9 +20555,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoSize - - Autofit cells to width (columns or ranges only). - + + Autofit cells to width (columns or ranges only). + SwitchParameter @@ -21597,9 +20566,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Width - + Set cells to a fixed width (columns or ranges only), ignored if Autosize is specified. - + Single Single @@ -21609,9 +20578,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Height - - Set cells to a fixed height (rows or ranges only). - + + Set cells to a fixed height (rows or ranges only). + Single Single @@ -21621,9 +20590,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hidden - - Hide a row or column (not a range); use -Hidden:$false to unhide. - + + Hide a row or column (not a range); use -Hidden:$false to unhide. + SwitchParameter @@ -21632,9 +20601,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Locked - + Locks cells. Cells are locked by default use -locked:$false on the whole sheet and then lock specific ones, and enable protection on the sheet. - + SwitchParameter @@ -21643,9 +20612,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Merge - + Merges cells - it is recommended that you explicitly set -HorizontalAlignment - + SwitchParameter @@ -21657,9 +20626,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Range - + One or more row(s), Column(s) and/or block(s) of cells to format. - + Object Object @@ -21669,9 +20638,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WorkSheet - + The worksheet where the format is to be applied. - + ExcelWorksheet ExcelWorksheet @@ -21681,9 +20650,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" or "0.0E+0" etc. - + + Number format to apply to cells for example "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" or "0.0E+0" etc. + Object Object @@ -21693,9 +20662,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the range. - + ExcelBorderStyle ExcelBorderStyle @@ -21705,9 +20674,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderColor - + Color of the border. - + Object Object @@ -21717,9 +20686,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderBottom - + Style for the bottom border. - + ExcelBorderStyle ExcelBorderStyle @@ -21729,9 +20698,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderTop - + Style for the top border. - + ExcelBorderStyle ExcelBorderStyle @@ -21741,9 +20710,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderLeft - + Style for the left border. - + ExcelBorderStyle ExcelBorderStyle @@ -21753,9 +20722,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderRight - + Style for the right border. - + ExcelBorderStyle ExcelBorderStyle @@ -21765,9 +20734,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Colour for the text - if none is specified it will be left as it is. - + Object Object @@ -21777,9 +20746,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - + Value for the cell. - + Object Object @@ -21789,9 +20758,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Formula - + Formula for the cell. - + Object Object @@ -21801,9 +20770,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ArrayFormula - + Specifies formula should be an array formula (a.k.a CSE [ctrl-shift-enter] formula). - + SwitchParameter SwitchParameter @@ -21813,9 +20782,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ResetFont - + Clear Bold, Italic, StrikeThrough and Underline and set color to Black. - + SwitchParameter SwitchParameter @@ -21825,9 +20794,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter SwitchParameter @@ -21837,9 +20806,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter SwitchParameter @@ -21849,9 +20818,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter SwitchParameter @@ -21861,9 +20830,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + ExcelUnderLineType ExcelUnderLineType @@ -21873,9 +20842,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -Strikethru:$false to remove Strike through - + SwitchParameter SwitchParameter @@ -21885,9 +20854,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or none). - + ExcelVerticalAlignmentFont ExcelVerticalAlignmentFont @@ -21897,9 +20866,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -21909,9 +20878,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -21921,9 +20890,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -21933,9 +20902,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - Solid by default. - + ExcelFillStyle ExcelFillStyle @@ -21945,9 +20914,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -21957,9 +20926,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter SwitchParameter @@ -21969,9 +20938,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. default is 'General'. - + ExcelHorizontalAlignment ExcelHorizontalAlignment @@ -21981,9 +20950,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + ExcelVerticalAlignment ExcelVerticalAlignment @@ -21993,9 +20962,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text; up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -22005,9 +20974,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem AutoSize - - Autofit cells to width (columns or ranges only). - + + Autofit cells to width (columns or ranges only). + SwitchParameter SwitchParameter @@ -22017,9 +20986,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Width - + Set cells to a fixed width (columns or ranges only), ignored if Autosize is specified. - + Single Single @@ -22029,9 +20998,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Height - - Set cells to a fixed height (rows or ranges only). - + + Set cells to a fixed height (rows or ranges only). + Single Single @@ -22041,9 +21010,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hidden - - Hide a row or column (not a range); use -Hidden:$false to unhide. - + + Hide a row or column (not a range); use -Hidden:$false to unhide. + SwitchParameter SwitchParameter @@ -22053,9 +21022,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Locked - + Locks cells. Cells are locked by default use -locked:$false on the whole sheet and then lock specific ones, and enable protection on the sheet. - + SwitchParameter SwitchParameter @@ -22065,9 +21034,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Merge - + Merges cells - it is recommended that you explicitly set -HorizontalAlignment - + SwitchParameter SwitchParameter @@ -22106,7 +21075,12 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem - + + + Online Version: + + + @@ -22127,9 +21101,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Set-ExcelRow ExcelPackage - + An Excel package object - for example from Export-Excel -PassThru - if specified requires a sheet name to be passed a parameter. - + ExcelPackage ExcelPackage @@ -22139,9 +21113,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Worksheetname - + The name of the sheet to update in the package. - + Object Object @@ -22151,9 +21125,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Row - - Row to fill right - first row is 1. 0 will be interpreted as first unused row. - + + Row to fill right - first row is 1. 0 will be interpreted as first unused row. + Object Object @@ -22163,9 +21137,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StartColumn - + Position in the row to start from. - + Int32 Int32 @@ -22175,9 +21149,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - - Value, Formula or ScriptBlock to fill in. A ScriptBlock can use $worksheet, $row, $Column [number], $ColumnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. - + + Value, Formula or ScriptBlock to fill in. A ScriptBlock can use $worksheet, $row, $Column [number], $ColumnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. + Object Object @@ -22187,9 +21161,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Heading - + Optional row-heading. - + Object Object @@ -22199,9 +21173,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HeadingBold - + Set the heading in bold type. - + SwitchParameter @@ -22210,9 +21184,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HeadingSize - + Change the font-size of the heading. - + Int32 Int32 @@ -22222,9 +21196,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells e.g. "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" , "0.0E+0" etc. - + + Number format to apply to cells e.g. "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" , "0.0E+0" etc. + Object Object @@ -22234,9 +21208,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the row. - + None Hair @@ -22261,9 +21235,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderColor - + Color of the border. - + Object Object @@ -22273,9 +21247,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderBottom - + Style for the bottom border. - + None Hair @@ -22300,9 +21274,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderTop - + Style for the top border. - + None Hair @@ -22327,9 +21301,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderLeft - + Style for the left border. - + None Hair @@ -22354,9 +21328,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderRight - + Style for the right border. - + None Hair @@ -22381,9 +21355,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Color for the text - if not specified the font will be left as it it is. - + Object Object @@ -22393,9 +21367,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter @@ -22404,9 +21378,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter @@ -22415,9 +21389,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter @@ -22426,9 +21400,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + None Single @@ -22445,9 +21419,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -StrikeThru:$false to remove strike through. - + SwitchParameter @@ -22456,9 +21430,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or none). - + None Baseline @@ -22474,9 +21448,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -22486,9 +21460,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -22498,9 +21472,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -22510,9 +21484,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - solid by default. - + None Solid @@ -22543,9 +21517,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -22555,9 +21529,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter @@ -22566,9 +21540,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. default is 'General'. - + General Left @@ -22588,9 +21562,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + Top Center @@ -22607,9 +21581,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text. Up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -22619,9 +21593,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Height - + Set cells to a fixed height. - + Single Single @@ -22631,9 +21605,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hide - + Hide the row. - + SwitchParameter @@ -22642,9 +21616,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ReturnRange - + If sepecified, returns the range of cells which were affected. - + SwitchParameter @@ -22653,9 +21627,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PassThru - + If Specified, return a row object to allow further work to be done. - + SwitchParameter @@ -22667,9 +21641,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Set-ExcelRow Worksheet - + A worksheet object instead of passing a name and package. - + ExcelWorksheet ExcelWorksheet @@ -22679,9 +21653,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Row - - Row to fill right - first row is 1. 0 will be interpreted as first unused row. - + + Row to fill right - first row is 1. 0 will be interpreted as first unused row. + Object Object @@ -22691,9 +21665,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StartColumn - + Position in the row to start from. - + Int32 Int32 @@ -22703,9 +21677,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - - Value, Formula or ScriptBlock to fill in. A ScriptBlock can use $worksheet, $row, $Column [number], $ColumnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. - + + Value, Formula or ScriptBlock to fill in. A ScriptBlock can use $worksheet, $row, $Column [number], $ColumnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. + Object Object @@ -22715,9 +21689,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Heading - + Optional row-heading. - + Object Object @@ -22727,9 +21701,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HeadingBold - + Set the heading in bold type. - + SwitchParameter @@ -22738,9 +21712,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HeadingSize - + Change the font-size of the heading. - + Int32 Int32 @@ -22750,9 +21724,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells e.g. "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" , "0.0E+0" etc. - + + Number format to apply to cells e.g. "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" , "0.0E+0" etc. + Object Object @@ -22762,9 +21736,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the row. - + None Hair @@ -22789,9 +21763,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderColor - + Color of the border. - + Object Object @@ -22801,9 +21775,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderBottom - + Style for the bottom border. - + None Hair @@ -22828,9 +21802,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderTop - + Style for the top border. - + None Hair @@ -22855,9 +21829,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderLeft - + Style for the left border. - + None Hair @@ -22882,9 +21856,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderRight - + Style for the right border. - + None Hair @@ -22909,9 +21883,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Color for the text - if not specified the font will be left as it it is. - + Object Object @@ -22921,9 +21895,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter @@ -22932,9 +21906,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter @@ -22943,9 +21917,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter @@ -22954,9 +21928,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + None Single @@ -22973,9 +21947,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -StrikeThru:$false to remove strike through. - + SwitchParameter @@ -22984,9 +21958,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or none). - + None Baseline @@ -23002,9 +21976,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -23014,9 +21988,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -23026,9 +22000,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -23038,9 +22012,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - solid by default. - + None Solid @@ -23071,9 +22045,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -23083,9 +22057,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter @@ -23094,9 +22068,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. default is 'General'. - + General Left @@ -23116,9 +22090,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + Top Center @@ -23135,9 +22109,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text. Up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -23147,9 +22121,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Height - + Set cells to a fixed height. - + Single Single @@ -23159,9 +22133,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hide - + Hide the row. - + SwitchParameter @@ -23170,9 +22144,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ReturnRange - + If sepecified, returns the range of cells which were affected. - + SwitchParameter @@ -23181,9 +22155,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PassThru - + If Specified, return a row object to allow further work to be done. - + SwitchParameter @@ -23195,9 +22169,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ExcelPackage - + An Excel package object - for example from Export-Excel -PassThru - if specified requires a sheet name to be passed a parameter. - + ExcelPackage ExcelPackage @@ -23207,9 +22181,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Worksheetname - + The name of the sheet to update in the package. - + Object Object @@ -23219,9 +22193,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Worksheet - + A worksheet object instead of passing a name and package. - + ExcelWorksheet ExcelWorksheet @@ -23231,9 +22205,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Row - - Row to fill right - first row is 1. 0 will be interpreted as first unused row. - + + Row to fill right - first row is 1. 0 will be interpreted as first unused row. + Object Object @@ -23243,9 +22217,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StartColumn - + Position in the row to start from. - + Int32 Int32 @@ -23255,9 +22229,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Value - - Value, Formula or ScriptBlock to fill in. A ScriptBlock can use $worksheet, $row, $Column [number], $ColumnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. - + + Value, Formula or ScriptBlock to fill in. A ScriptBlock can use $worksheet, $row, $Column [number], $ColumnName [letter(s)], $startRow, $startColumn, $endRow, $endColumn. + Object Object @@ -23267,9 +22241,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Heading - + Optional row-heading. - + Object Object @@ -23279,9 +22253,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HeadingBold - + Set the heading in bold type. - + SwitchParameter SwitchParameter @@ -23291,9 +22265,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HeadingSize - + Change the font-size of the heading. - + Int32 Int32 @@ -23303,9 +22277,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem NumberFormat - - Number format to apply to cells e.g. "dd/MM/yyyy HH:mm", "£#,##0.00;[Red]-£#,##0.00", "0.00%" , "##/##" , "0.0E+0" etc. - + + Number format to apply to cells e.g. "dd/MM/yyyy HH:mm", "£\#,\#\#0.00;[Red]-£\#,\#\#0.00", "0.00%" , "\#\#/\#\#" , "0.0E+0" etc. + Object Object @@ -23315,9 +22289,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderAround - + Style of border to draw around the row. - + ExcelBorderStyle ExcelBorderStyle @@ -23327,9 +22301,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderColor - + Color of the border. - + Object Object @@ -23339,9 +22313,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderBottom - + Style for the bottom border. - + ExcelBorderStyle ExcelBorderStyle @@ -23351,9 +22325,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderTop - + Style for the top border. - + ExcelBorderStyle ExcelBorderStyle @@ -23363,9 +22337,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderLeft - + Style for the left border. - + ExcelBorderStyle ExcelBorderStyle @@ -23375,9 +22349,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BorderRight - + Style for the right border. - + ExcelBorderStyle ExcelBorderStyle @@ -23387,9 +22361,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontColor - + Color for the text - if not specified the font will be left as it it is. - + Object Object @@ -23399,9 +22373,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Bold - + Make text bold; use -Bold:$false to remove bold. - + SwitchParameter SwitchParameter @@ -23411,9 +22385,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Italic - - Make text italic; use -Italic:$false to remove italic. - + + Make text italic; use -Italic:$false to remove italic. + SwitchParameter SwitchParameter @@ -23423,9 +22397,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Underline - - Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. - + + Underline the text using the underline style in -UnderlineType; use -Underline:$false to remove underlining. + SwitchParameter SwitchParameter @@ -23435,9 +22409,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem UnderLineType - + Specifies whether underlining should be single or double, normal or accounting mode. The default is "Single". - + ExcelUnderLineType ExcelUnderLineType @@ -23447,9 +22421,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem StrikeThru - + Strike through text; use -StrikeThru:$false to remove strike through. - + SwitchParameter SwitchParameter @@ -23459,9 +22433,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontShift - + Subscript or Superscript (or none). - + ExcelVerticalAlignmentFont ExcelVerticalAlignmentFont @@ -23471,9 +22445,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontName - + Font to use - Excel defaults to Calibri. - + String String @@ -23483,9 +22457,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem FontSize - + Point size for the text. - + Single Single @@ -23495,9 +22469,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundColor - + Change background color. - + Object Object @@ -23507,9 +22481,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem BackgroundPattern - + Background pattern - solid by default. - + ExcelFillStyle ExcelFillStyle @@ -23519,9 +22493,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PatternColor - + Secondary color for background pattern. - + Object Object @@ -23531,9 +22505,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem WrapText - + Turn on Text-Wrapping; use -WrapText:$false to turn off wrapping. - + SwitchParameter SwitchParameter @@ -23543,9 +22517,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem HorizontalAlignment - + Position cell contents to Left, Right, Center etc. default is 'General'. - + ExcelHorizontalAlignment ExcelHorizontalAlignment @@ -23555,9 +22529,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem VerticalAlignment - + Position cell contents to Top, Bottom or Center. - + ExcelVerticalAlignment ExcelVerticalAlignment @@ -23567,9 +22541,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem TextRotation - + Degrees to rotate text. Up to +90 for anti-clockwise ("upwards"), or to -90 for clockwise. - + Int32 Int32 @@ -23579,9 +22553,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Height - + Set cells to a fixed height. - + Single Single @@ -23591,9 +22565,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem Hide - + Hide the row. - + SwitchParameter SwitchParameter @@ -23603,9 +22577,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem ReturnRange - + If sepecified, returns the range of cells which were affected. - + SwitchParameter SwitchParameter @@ -23615,9 +22589,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PassThru - + If Specified, return a row object to allow further work to be done. - + SwitchParameter SwitchParameter @@ -23656,7 +22630,7 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem PS\> Set-ExcelRow -Worksheet $ws -Heading Total -Value {"=sum($columnName`2:$columnName$endrow)" } $Ws contains a worksheet object, and no Row number is specified so Set-ExcelRow will select the next row after the end of the data in the sheet. - The first cell in the row will contain "Total", and each of the other cells will contain =Sum(xx2:xx99) where xx is the column name, and 99 is the last row of data. + The first cell in the row will contain "Total", and each of the other cells will contain =Sum(xx2:xx99) where xx is the column name, and 99 is the last row of data. Note the use of the backtick in the script block (`2) to Prevent 2 becoming part of the variable "ColumnName" The script block can use $Worksheet, $Row, $Column (number), $ColumnName (letter), $StartRow/Column and $EndRow/Column. @@ -23670,7 +22644,12 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem - + + + Online Version: + + + @@ -23757,6 +22736,10 @@ PS\> $Array | Update-FirstObjectProperties | Export-Excel @ExcelParams -WorkS + + Online Version: + + https://github.com/dfinke/ImportExcel https://github.com/dfinke/ImportExcel diff --git a/mdHelp/en/add-exceltable.md b/mdHelp/en/add-exceltable.md index 82670835..43793ae5 100644 --- a/mdHelp/en/add-exceltable.md +++ b/mdHelp/en/add-exceltable.md @@ -14,7 +14,7 @@ Adds Tables to Excel workbooks. ## SYNTAX ```text -Add-ExcelTable [-Range] [[-TableName] ] [[-TableStyle] ] [-ShowHeader] [-ShowFilter] [-ShowTotal] [[-TotalSettings] ] [-ShowFirstColumn] [-ShowLastColumn] [-ShowRowStripes] [-ShowColumnStripes] [-PassThru] [] +Add-ExcelTable [-Range] [[-TableName] ] [[-TableStyle] ] [-ShowHeader] [-ShowFilter] [-ShowTotal] [[-TableTotalSettings] ] [-ShowFirstColumn] [-ShowLastColumn] [-ShowRowStripes] [-ShowColumnStripes] [-PassThru] [] ``` ## DESCRIPTION @@ -142,9 +142,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -TotalSettings +### -TableTotalSettings -A HashTable in the form ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var" - if specified, -ShowTotal is not needed. +A HashTable in the form of either + +- ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|\ $r | Export-Excel -TableName system32files -TableStyle Medium10 -TableTotalSettings $TotalSettings -Show +``` + +Exports a list of files with a totals row with three calculated totals: + +- Total count of names +- Count of files with the extension ".exe" +- Total size of all file with extension ".exe" and add a comment as to not be mistaken that is is the total size of all files + +### EXAMPLE 8 + ```text PS\> $ExcelParams = @{ Path = $env:TEMP + '\Excel.xlsx' @@ -189,25 +212,25 @@ PS\> $Array | Update-FirstObjectProperties | Export-Excel @ExcelParams -Workshee Updates the first object of the array by adding property 'Member3' and 'Member4'. Afterwards, all objects are exported to an Excel file and all column headers are visible. -### EXAMPLE 8 +### EXAMPLE 9 ```text PS\> Get-Process | Export-Excel .\test.xlsx -WorksheetName Processes -IncludePivotTable -Show -PivotRows Company -PivotData PM ``` -### EXAMPLE 9 +### EXAMPLE 10 ```text PS\> Get-Process | Export-Excel .\test.xlsx -WorksheetName Processes -ChartType PieExploded3D -IncludePivotChart -IncludePivotTable -Show -PivotRows Company -PivotData PM ``` -### EXAMPLE 10 +### EXAMPLE 11 ```text PS\> Get-Service | Export-Excel 'c:\temp\test.xlsx' -Show -IncludePivotTable -PivotRows status -PivotData @{status='count'} ``` -### EXAMPLE 11 +### EXAMPLE 12 ```text PS\> $pt = [ordered]@{} @@ -237,7 +260,7 @@ Then it puts Service data on Sheet1 with one call to Export-Excel and Process Da The third and final call adds the two PivotTables and opens the spreadsheet in Excel. -### EXAMPLE 12 +### EXAMPLE 13 ```text PS\> Remove-Item -Path .\test.xlsx @@ -258,7 +281,7 @@ It then uses the package object to apply formatting, and then saves the workbook Note: Other commands in the module remove the need to work directly with the package object in this way. -### EXAMPLE 13 +### EXAMPLE 14 ```text PS\> Remove-Item -Path .\test.xlsx -ErrorAction Ignore @@ -281,7 +304,7 @@ This a more sophisticated version of the previous example showing different ways In the final command a PivotChart is added and the workbook is opened in Excel. -### EXAMPLE 14 +### EXAMPLE 15 ```text PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{X=$_; Sinx="=Sin(Radians(x)) "} } | @@ -290,7 +313,7 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{X=$_; Sinx="=Sin(Radian Creates a line chart showing the value of Sine\(x\) for values of X between 0 and 360 degrees. -### EXAMPLE 15 +### EXAMPLE 16 ```text PS\> Invoke-Sqlcmd -ServerInstance localhost\DEFAULT -Database AdventureWorks2014 -Query "select * from sys.tables" -OutputAs DataRows | @@ -952,6 +975,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -TableTotalSettings + +A HashTable in the form of either + +- ColumnName = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|\