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-ConditionalFormattingAddress
-
- 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"]
+ ObjectObject
@@ -33,9 +34,9 @@
RuleType
-
+ A standard named-rule - Top / Bottom / Less than / Greater than / Contains etc.
-
+ AboveAverageAboveOrEqualAverage
@@ -93,9 +94,9 @@
ConditionValue
-
+ A value for the condition (for example 2000 if the test is 'lessthan 2000'; Formulas should begin with "=" )
-
+ ObjectObject
@@ -105,9 +106,9 @@
ConditionValue2
-
+ A second value for the conditions like "Between X and Y"
-
+ ObjectObject
@@ -117,9 +118,9 @@
WorkSheet
-
+ The worksheet where the format is to be applied
-
+ ExcelWorksheetExcelWorksheet
@@ -129,9 +130,9 @@
ForegroundColor
-
+ Text color for matching objects
-
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -164,9 +165,9 @@
BackgroundPattern
-
+ Background pattern for matching items
-
+ NoneSolid
@@ -197,9 +198,9 @@
PatternColor
-
+ Secondary color when a background pattern requires it
-
+ ObjectObject
@@ -209,9 +210,9 @@
NumberFormat
-
+ Sets the numeric format for matching items
-
+ ObjectObject
@@ -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
-
+ Int32Int32
@@ -288,9 +289,9 @@
PassThru
-
+ If specified pass the rule back to the caller to allow additional customization.
-
+ SwitchParameter
@@ -302,9 +303,9 @@
Add-ConditionalFormattingAddress
-
- 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"]
+ ObjectObject
@@ -314,9 +315,9 @@
WorkSheet
-
+ The worksheet where the format is to be applied
-
+ ExcelWorksheetExcelWorksheet
@@ -326,9 +327,9 @@
DataBarColor
-
+ Color for databar type charts
-
+ ObjectObject
@@ -338,9 +339,9 @@
Priority
-
+ Set the sequence for rule processing
-
+ Int32Int32
@@ -350,9 +351,9 @@
PassThru
-
+ If specified pass the rule back to the caller to allow additional customization.
-
+ SwitchParameter
@@ -364,9 +365,9 @@
Add-ConditionalFormattingAddress
-
- 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"]
+ ObjectObject
@@ -376,9 +377,9 @@
WorkSheet
-
+ The worksheet where the format is to be applied
-
+ ExcelWorksheetExcelWorksheet
@@ -388,9 +389,9 @@
ThreeIconsSet
-
+ One of the three-icon set types (e.g. Traffic Lights)
-
+ ArrowsArrowsGray
@@ -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
-
+ Int32Int32
@@ -433,9 +434,9 @@
PassThru
-
+ If specified pass the rule back to the caller to allow additional customization.
-
+ SwitchParameter
@@ -447,9 +448,9 @@
Add-ConditionalFormattingAddress
-
- 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"]
+ ObjectObject
@@ -459,9 +460,9 @@
WorkSheet
-
+ The worksheet where the format is to be applied
-
+ ExcelWorksheetExcelWorksheet
@@ -471,9 +472,9 @@
FourIconsSet
-
+ A four-icon set name
-
+ ArrowsArrowsGray
@@ -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
-
+ Int32Int32
@@ -513,9 +514,9 @@
PassThru
-
+ If specified pass the rule back to the caller to allow additional customization.
-
+ SwitchParameter
@@ -527,9 +528,9 @@
Add-ConditionalFormattingAddress
-
- 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"]
+ ObjectObject
@@ -539,9 +540,9 @@
WorkSheet
-
+ The worksheet where the format is to be applied
-
+ ExcelWorksheetExcelWorksheet
@@ -551,9 +552,9 @@
FiveIconsSet
-
+ A five-icon set name
-
+ ArrowsArrowsGray
@@ -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
-
+ Int32Int32
@@ -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"]
+ ObjectObject
@@ -618,9 +619,9 @@
WorkSheet
-
+ The worksheet where the format is to be applied
-
+ ExcelWorksheetExcelWorksheet
@@ -630,9 +631,9 @@
RuleType
-
+ A standard named-rule - Top / Bottom / Less than / Greater than / Contains etc.
-
+ eExcelConditionalFormattingRuleTypeeExcelConditionalFormattingRuleType
@@ -642,9 +643,9 @@
ForegroundColor
-
+ Text color for matching objects
-
+ ObjectObject
@@ -654,9 +655,9 @@
DataBarColor
-
+ Color for databar type charts
-
+ ObjectObject
@@ -666,9 +667,9 @@
ThreeIconsSet
-
+ One of the three-icon set types (e.g. Traffic Lights)
-
+ eExcelconditionalFormatting3IconsSetTypeeExcelconditionalFormatting3IconsSetType
@@ -678,9 +679,9 @@
FourIconsSet
-
+ A four-icon set name
-
+ eExcelconditionalFormatting4IconsSetTypeeExcelconditionalFormatting4IconsSetType
@@ -690,9 +691,9 @@
FiveIconsSet
-
+ A five-icon set name
-
+ eExcelconditionalFormatting5IconsSetTypeeExcelconditionalFormatting5IconsSetType
@@ -702,9 +703,9 @@
Reverse
-
+ Use the Icon-Set in reverse order, or reverse the orders of Two- & Three-Color Scales
-
+ SwitchParameterSwitchParameter
@@ -714,9 +715,9 @@
ConditionValue
-
+ A value for the condition (for example 2000 if the test is 'lessthan 2000'; Formulas should begin with "=" )
-
+ ObjectObject
@@ -726,9 +727,9 @@
ConditionValue2
-
+ A second value for the conditions like "Between X and Y"
-
+ ObjectObject
@@ -738,9 +739,9 @@
BackgroundColor
-
+ Background color for matching items
-
+ ObjectObject
@@ -750,9 +751,9 @@
BackgroundPattern
-
+ Background pattern for matching items
-
+ ExcelFillStyleExcelFillStyle
@@ -762,9 +763,9 @@
PatternColor
-
+ Secondary color when a background pattern requires it
-
+ ObjectObject
@@ -774,9 +775,9 @@
NumberFormat
-
+ Sets the numeric format for matching items
-
+ ObjectObject
@@ -786,9 +787,9 @@
Bold
-
+ Put matching items in bold face
-
+ SwitchParameterSwitchParameter
@@ -798,9 +799,9 @@
Italic
-
+ Put matching items in italic
-
+ SwitchParameterSwitchParameter
@@ -810,9 +811,9 @@
Underline
-
+ Underline matching items
-
+ SwitchParameterSwitchParameter
@@ -822,9 +823,9 @@
StrikeThru
-
+ Strikethrough text of matching items
-
+ SwitchParameterSwitchParameter
@@ -834,9 +835,9 @@
StopIfTrue
-
+ Prevent the processing of subsequent rules
-
+ SwitchParameterSwitchParameter
@@ -846,9 +847,9 @@
Priority
-
+ Set the sequence for rule processing
-
+ Int32Int32
@@ -858,9 +859,9 @@
PassThru
-
+ If specified pass the rule back to the caller to allow additional customization.
-
+ SwitchParameterSwitchParameter
@@ -948,7 +949,12 @@
-
+
+
+ Online Version:
+
+
+
@@ -969,9 +975,9 @@
Add-ExcelChartWorksheet
-
+ An existing Sheet where the chart will be created.
-
+ ExcelWorksheetExcelWorksheet
@@ -981,9 +987,9 @@
Title
-
+ The title for the chart.
-
+ StringString
@@ -993,9 +999,9 @@
ChartType
-
+ One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked".
-
+ AreaLine
@@ -1080,9 +1086,9 @@
ChartTrendLine
-
- {{ Fill ChartTrendLine Description }}
-
+
+
+ ExponentialLinear
@@ -1100,9 +1106,9 @@
XRange
-
+ The range of cells containing values for the X-Axis - usually labels.
-
+ ObjectObject
@@ -1112,9 +1118,9 @@
YRange
-
+ The range(s) of cells holding values for the Y-Axis - usually "data".
-
+ ObjectObject
@@ -1124,9 +1130,9 @@
Width
-
+ Width of the chart in Pixels; defaults to 500.
-
+ Int32Int32
@@ -1136,9 +1142,9 @@
Height
-
+ Height of the chart in Pixels; defaults to 350.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -1184,9 +1190,9 @@
ColumnOffSetPixels
-
+ Offset to position the chart by a fraction of a column.
-
+ Int32Int32
@@ -1196,9 +1202,9 @@
LegendPosition
-
+ Location of the key, either left, right, top, bottom or TopRight.
-
+ TopLeft
@@ -1215,9 +1221,9 @@
LegendSize
-
+ Font size for the key.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -1306,9 +1312,9 @@
XAxisTitleText
-
+ Specifies a title for the X-axis.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
+ StringString
@@ -1353,9 +1359,9 @@
XMajorUnit
-
+ Spacing for the major gridlines / tick marks along the X-axis.
-
+ ObjectObject
@@ -1365,9 +1371,9 @@
XMinorUnit
-
+ Spacing for the minor gridlines / tick marks along the X-axis.
-
+ ObjectObject
@@ -1377,9 +1383,9 @@
XMaxValue
-
+ Maximum value for the scale along the X-axis.
-
+ ObjectObject
@@ -1389,9 +1395,9 @@
XMinValue
-
+ Minimum value for the scale along the X-axis.
-
+ ObjectObject
@@ -1401,9 +1407,9 @@
XAxisPosition
-
+ Position for the X-axis (Top or Bottom).
-
+ LeftBottom
@@ -1419,9 +1425,9 @@
YAxisTitleText
-
+ Specifies a title for the Y-axis.
-
+ StringString
@@ -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
-
+ ObjectObject
@@ -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.
+ StringString
@@ -1466,9 +1472,9 @@
YMajorUnit
-
+ Spacing for the major gridlines / tick marks on the Y-axis.
-
+ ObjectObject
@@ -1478,9 +1484,9 @@
YMinorUnit
-
+ Spacing for the minor gridlines / tick marks on the Y-axis.
-
+ ObjectObject
@@ -1490,9 +1496,9 @@
YMaxValue
-
+ Maximum value on the Y-axis.
-
+ ObjectObject
@@ -1502,9 +1508,9 @@
YMinValue
-
+ Minimum value on the Y-axis.
-
+ ObjectObject
@@ -1514,9 +1520,9 @@
YAxisPosition
-
+ Position for the Y-axis (Left or Right).
-
+ LeftBottom
@@ -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-ExcelChartPivotTable
-
+ Instead of specify X and Y ranges, get data from a PivotTable by passing a PivotTable Object.
-
+ ExcelPivotTableExcelPivotTable
@@ -1558,9 +1564,9 @@
Title
-
+ The title for the chart.
-
+ StringString
@@ -1570,9 +1576,9 @@
ChartType
-
+ One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked".
-
+ AreaLine
@@ -1657,9 +1663,9 @@
ChartTrendLine
-
- {{ Fill ChartTrendLine Description }}
-
+
+
+ ExponentialLinear
@@ -1677,9 +1683,9 @@
XRange
-
+ The range of cells containing values for the X-Axis - usually labels.
-
+ ObjectObject
@@ -1689,9 +1695,9 @@
YRange
-
+ The range(s) of cells holding values for the Y-Axis - usually "data".
-
+ ObjectObject
@@ -1701,9 +1707,9 @@
Width
-
+ Width of the chart in Pixels; defaults to 500.
-
+ Int32Int32
@@ -1713,9 +1719,9 @@
Height
-
+ Height of the chart in Pixels; defaults to 350.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -1761,9 +1767,9 @@
ColumnOffSetPixels
-
+ Offset to position the chart by a fraction of a column.
-
+ Int32Int32
@@ -1773,9 +1779,9 @@
LegendPosition
-
+ Location of the key, either left, right, top, bottom or TopRight.
-
+ TopLeft
@@ -1792,9 +1798,9 @@
LegendSize
-
+ Font size for the key.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -1883,9 +1889,9 @@
XAxisTitleText
-
+ Specifies a title for the X-axis.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
+ StringString
@@ -1930,9 +1936,9 @@
XMajorUnit
-
+ Spacing for the major gridlines / tick marks along the X-axis.
-
+ ObjectObject
@@ -1942,9 +1948,9 @@
XMinorUnit
-
+ Spacing for the minor gridlines / tick marks along the X-axis.
-
+ ObjectObject
@@ -1954,9 +1960,9 @@
XMaxValue
-
+ Maximum value for the scale along the X-axis.
-
+ ObjectObject
@@ -1966,9 +1972,9 @@
XMinValue
-
+ Minimum value for the scale along the X-axis.
-
+ ObjectObject
@@ -1978,9 +1984,9 @@
XAxisPosition
-
+ Position for the X-axis (Top or Bottom).
-
+ LeftBottom
@@ -1996,9 +2002,9 @@
YAxisTitleText
-
+ Specifies a title for the Y-axis.
-
+ StringString
@@ -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
-
+ ObjectObject
@@ -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.
+ StringString
@@ -2043,9 +2049,9 @@
YMajorUnit
-
+ Spacing for the major gridlines / tick marks on the Y-axis.
-
+ ObjectObject
@@ -2055,9 +2061,9 @@
YMinorUnit
-
+ Spacing for the minor gridlines / tick marks on the Y-axis.
-
+ ObjectObject
@@ -2067,9 +2073,9 @@
YMaxValue
-
+ Maximum value on the Y-axis.
-
+ ObjectObject
@@ -2079,9 +2085,9 @@
YMinValue
-
+ Minimum value on the Y-axis.
-
+ ObjectObject
@@ -2091,9 +2097,9 @@
YAxisPosition
-
+ Position for the Y-axis (Left or Right).
-
+ LeftBottom
@@ -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.
-
+ ExcelWorksheetExcelWorksheet
@@ -2135,9 +2141,9 @@
PivotTable
-
+ Instead of specify X and Y ranges, get data from a PivotTable by passing a PivotTable Object.
-
+ ExcelPivotTableExcelPivotTable
@@ -2147,9 +2153,9 @@
Title
-
+ The title for the chart.
-
+ StringString
@@ -2159,9 +2165,9 @@
ChartType
-
+ One of the built-in chart types, such as Pie, ClusteredColumn, Line etc. Defaults to "ColumnStacked".
-
+ eChartTypeeChartType
@@ -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.
-
+ ObjectObject
@@ -2195,9 +2201,9 @@
YRange
-
+ The range(s) of cells holding values for the Y-Axis - usually "data".
-
+ ObjectObject
@@ -2207,9 +2213,9 @@
Width
-
+ Width of the chart in Pixels; defaults to 500.
-
+ Int32Int32
@@ -2219,9 +2225,9 @@
Height
-
+ Height of the chart in Pixels; defaults to 350.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -2267,9 +2273,9 @@
ColumnOffSetPixels
-
+ Offset to position the chart by a fraction of a column.
-
+ Int32Int32
@@ -2279,9 +2285,9 @@
LegendPosition
-
+ Location of the key, either left, right, top, bottom or TopRight.
-
+ eLegendPositioneLegendPosition
@@ -2291,9 +2297,9 @@
LegendSize
-
+ Font size for the key.
-
+ ObjectObject
@@ -2303,9 +2309,9 @@
LegendBold
-
+ Sets the key in bold type.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -2327,9 +2333,9 @@
ShowCategory
-
+ Attaches a category label, in charts which support this.
-
+ SwitchParameterSwitchParameter
@@ -2339,9 +2345,9 @@
ShowPercent
-
+ Attaches a percentage label, in charts which support this.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -2375,9 +2381,9 @@
TitleSize
-
+ Sets the point size for the title.
-
+ Int32Int32
@@ -2387,9 +2393,9 @@
XAxisTitleText
-
+ Specifies a title for the X-axis.
-
+ StringString
@@ -2399,9 +2405,9 @@
XAxisTitleBold
-
+ Sets the X-axis title in bold face.
-
+ SwitchParameterSwitchParameter
@@ -2411,9 +2417,9 @@
XAxisTitleSize
-
+ Sets the font size for the axis title.
-
+ ObjectObject
@@ -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.
+ StringString
@@ -2435,9 +2441,9 @@
XMajorUnit
-
+ Spacing for the major gridlines / tick marks along the X-axis.
-
+ ObjectObject
@@ -2447,9 +2453,9 @@
XMinorUnit
-
+ Spacing for the minor gridlines / tick marks along the X-axis.
-
+ ObjectObject
@@ -2459,9 +2465,9 @@
XMaxValue
-
+ Maximum value for the scale along the X-axis.
-
+ ObjectObject
@@ -2471,9 +2477,9 @@
XMinValue
-
+ Minimum value for the scale along the X-axis.
-
+ ObjectObject
@@ -2483,9 +2489,9 @@
XAxisPosition
-
+ Position for the X-axis (Top or Bottom).
-
+ eAxisPositioneAxisPosition
@@ -2495,9 +2501,9 @@
YAxisTitleText
-
+ Specifies a title for the Y-axis.
-
+ StringString
@@ -2507,9 +2513,9 @@
YAxisTitleBold
-
+ Sets the Y-axis title in bold face.
-
+ SwitchParameterSwitchParameter
@@ -2519,9 +2525,9 @@
YAxisTitleSize
-
+ Sets the font size for the Y-axis title
-
+ ObjectObject
@@ -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.
+ StringString
@@ -2543,9 +2549,9 @@
YMajorUnit
-
+ Spacing for the major gridlines / tick marks on the Y-axis.
-
+ ObjectObject
@@ -2555,9 +2561,9 @@
YMinorUnit
-
+ Spacing for the minor gridlines / tick marks on the Y-axis.
-
+ ObjectObject
@@ -2567,9 +2573,9 @@
YMaxValue
-
+ Maximum value on the Y-axis.
-
+ ObjectObject
@@ -2579,9 +2585,9 @@
YMinValue
-
+ Minimum value on the Y-axis.
-
+ ObjectObject
@@ -2591,9 +2597,9 @@
YAxisPosition
-
+ Position for the Y-axis (Left or Right).
-
+ eAxisPositioneAxisPosition
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -2688,7 +2694,12 @@ Close-ExcelPackage $Excel -Show
-
+
+
+ Online Version:
+
+
+
@@ -2707,9 +2718,9 @@ Close-ExcelPackage $Excel -Show
Add-ExcelDataValidationRuleRange
-
+ The range of cells to be validate, for example, "B2:C100"
-
+ ObjectObject
@@ -2719,9 +2730,9 @@ Close-ExcelPackage $Excel -Show
WorkSheet
-
+ The worksheet where the cells should be validated
-
+ ExcelWorksheetExcelWorksheet
@@ -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
-
+ ObjectObject
@@ -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"
-
+ betweennotBetween
@@ -2765,9 +2776,9 @@ Close-ExcelPackage $Excel -Show
Value
-
+ For Decimal, Integer, TextLength, DateTime the [first] data value
-
+ ObjectObject
@@ -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
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -2801,9 +2812,9 @@ Close-ExcelPackage $Excel -Show
Formula2
-
+ When using the between operator, the second data value as a formula
-
+ ObjectObject
@@ -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 )
-
+ ObjectObject
@@ -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
-
+ undefinedstop
@@ -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
+ StringString
@@ -2866,9 +2877,9 @@ Close-ExcelPackage $Excel -Show
ErrorBody
-
+ The error message corresponding to to the Error message setting in the Excel dialog
-
+ StringString
@@ -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
-
+ StringString
@@ -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
+ StringString
@@ -2913,9 +2924,9 @@ Close-ExcelPackage $Excel -Show
NoBlank
-
+ By default the 'Ignore blank' option will be selected, unless NoBlank is sepcified.
-
+ StringString
@@ -2928,9 +2939,9 @@ Close-ExcelPackage $Excel -Show
Range
-
+ The range of cells to be validate, for example, "B2:C100"
-
+ ObjectObject
@@ -2940,9 +2951,9 @@ Close-ExcelPackage $Excel -Show
WorkSheet
-
+ The worksheet where the cells should be validated
-
+ ExcelWorksheetExcelWorksheet
@@ -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
-
+ ObjectObject
@@ -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"
-
+ ExcelDataValidationOperatorExcelDataValidationOperator
@@ -2976,9 +2987,9 @@ Close-ExcelPackage $Excel -Show
Value
-
+ For Decimal, Integer, TextLength, DateTime the [first] data value
-
+ ObjectObject
@@ -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
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -3012,9 +3023,9 @@ Close-ExcelPackage $Excel -Show
Formula2
-
+ When using the between operator, the second data value as a formula
-
+ ObjectObject
@@ -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 )
-
+ ObjectObject
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -3048,9 +3059,9 @@ Close-ExcelPackage $Excel -Show
ErrorStyle
-
+ Stop, Warning, or Infomation, corresponding to to the style setting in the Excel dialog
-
+ ExcelDataValidationWarningStyleExcelDataValidationWarningStyle
@@ -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
+ StringString
@@ -3072,9 +3083,9 @@ Close-ExcelPackage $Excel -Show
ErrorBody
-
+ The error message corresponding to to the Error message setting in the Excel dialog
-
+ StringString
@@ -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
+ SwitchParameterSwitchParameter
@@ -3096,9 +3107,9 @@ Close-ExcelPackage $Excel -Show
PromptBody
-
+ The prompt message corresponding to to the Input message setting in the Excel dialog
-
+ StringString
@@ -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
+ StringString
@@ -3120,9 +3131,9 @@ Close-ExcelPackage $Excel -Show
NoBlank
-
+ By default the 'Ignore blank' option will be selected, unless NoBlank is sepcified.
-
+ StringString
@@ -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 > 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-ExcelNameRange
-
+ The range of cells to assign as a name.
-
+ ExcelRangeExcelRange
@@ -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.
+ StringString
@@ -3211,9 +3227,9 @@ Close-ExcelPackage $Excel -Show
Range
-
+ The range of cells to assign as a name.
-
+ ExcelRangeExcelRange
@@ -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.
+ StringString
@@ -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-ExcelTableRange
-
+ The range of cells to assign to a table.
-
+ ExcelRangeExcelRange
@@ -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.
-
+ StringString
@@ -3295,9 +3316,9 @@ Close-ExcelPackage $Excel -Show
TableStyle
-
+ The Style for the table, by default "Medium6" is used
-
+ NoneCustom
@@ -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.
+ HashtableHashtable
@@ -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.
-
+ ExcelRangeExcelRange
@@ -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.
-
+ StringString
@@ -3498,9 +3527,9 @@ Close-ExcelPackage $Excel -Show
TableStyle
-
+ The Style for the table, by default "Medium6" is used
-
+ TableStylesTableStyles
@@ -3510,9 +3539,9 @@ Close-ExcelPackage $Excel -Show
ShowHeader
-
+ By default the header row is shown - it can be turned off with -ShowHeader:$false.
-
+ SwitchParameterSwitchParameter
@@ -3522,9 +3551,9 @@ Close-ExcelPackage $Excel -Show
ShowFilter
-
+ By default the filter is enabled - it can be turned off with -ShowFilter:$false.
-
+ SwitchParameterSwitchParameter
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -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.
+ HashtableHashtable
@@ -3558,9 +3595,9 @@ Close-ExcelPackage $Excel -Show
ShowFirstColumn
-
+ Highlights the first column in bold.
-
+ SwitchParameterSwitchParameter
@@ -3570,9 +3607,9 @@ Close-ExcelPackage $Excel -Show
ShowLastColumn
-
+ Highlights the last column in bold.
-
+ SwitchParameterSwitchParameter
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -3594,9 +3631,9 @@ Close-ExcelPackage $Excel -Show
ShowColumnStripes
-
+ Turns on column stripes.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -3649,7 +3686,12 @@ Close-ExcelPackage $Excel -Show
-
+
+
+ Online Version:
+
+
+
@@ -3668,9 +3710,9 @@ Close-ExcelPackage $Excel -Show
Add-PivotTablePivotTableName
-
+ Name for the new PivotTable - this will be the name of a sheet in the Workbook.
-
+ StringString
@@ -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.)
-
+ ExcelAddressBaseExcelAddressBase
@@ -3692,9 +3734,9 @@ Close-ExcelPackage $Excel -Show
ExcelPackage
-
+ An Excel-package object for the workbook.
-
+ ObjectObject
@@ -3704,9 +3746,9 @@ Close-ExcelPackage $Excel -Show
SourceWorkSheet
-
+ Worksheet where the data is found.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -3728,9 +3770,9 @@ Close-ExcelPackage $Excel -Show
PivotRows
-
+ Fields to set as rows in the PivotTable.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -3752,9 +3794,9 @@ Close-ExcelPackage $Excel -Show
PivotColumns
-
+ Fields to set as columns in the PivotTable.
-
+ ObjectObject
@@ -3764,9 +3806,9 @@ Close-ExcelPackage $Excel -Show
PivotFilter
-
+ Fields to use to filter in the PivotTable.
-
+ ObjectObject
@@ -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).
-
+ StringString
@@ -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)
+ StringString
@@ -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)
-
+ YearsQuarters
@@ -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 )
+ StringString
@@ -3855,9 +3921,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericMin
-
+ The starting point for grouping
-
+ DoubleDouble
@@ -3867,9 +3933,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericMax
-
+ The endpoint for grouping
-
+ DoubleDouble
@@ -3879,9 +3945,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericInterval
-
+ The interval for grouping
-
+ DoubleDouble
@@ -3891,9 +3957,9 @@ Close-ExcelPackage $Excel -Show
PivotNumberFormat
-
+ Number format to apply to the data cells in the PivotTable.
-
+ StringString
@@ -3903,9 +3969,9 @@ Close-ExcelPackage $Excel -Show
PivotTableStyle
-
+ Apply a table style to the PivotTable.
-
+ NoneCustom
@@ -3979,9 +4045,9 @@ Close-ExcelPackage $Excel -Show
PivotChartDefinition
-
+ Use a chart definition instead of specifying chart settings one by one.
-
+ ObjectObject
@@ -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-PivotTablePivotTableName
-
+ Name for the new PivotTable - this will be the name of a sheet in the Workbook.
-
+ StringString
@@ -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.)
-
+ ExcelAddressBaseExcelAddressBase
@@ -4040,9 +4106,9 @@ Close-ExcelPackage $Excel -Show
ExcelPackage
-
+ An Excel-package object for the workbook.
-
+ ObjectObject
@@ -4052,9 +4118,9 @@ Close-ExcelPackage $Excel -Show
SourceWorkSheet
-
+ Worksheet where the data is found.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -4076,9 +4142,9 @@ Close-ExcelPackage $Excel -Show
PivotRows
-
+ Fields to set as rows in the PivotTable.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -4100,9 +4166,9 @@ Close-ExcelPackage $Excel -Show
PivotColumns
-
+ Fields to set as columns in the PivotTable.
-
+ ObjectObject
@@ -4112,9 +4178,9 @@ Close-ExcelPackage $Excel -Show
PivotFilter
-
+ Fields to use to filter in the PivotTable.
-
+ ObjectObject
@@ -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).
-
+ StringString
@@ -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)
+ StringString
@@ -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)
-
+ YearsQuarters
@@ -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 )
-
+ StringString
@@ -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
+
+ DoubleDouble
@@ -4215,9 +4305,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericMax
-
+ The endpoint for grouping
-
+ DoubleDouble
@@ -4227,9 +4317,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericInterval
-
+ The interval for grouping
-
+ DoubleDouble
@@ -4239,9 +4329,9 @@ Close-ExcelPackage $Excel -Show
PivotNumberFormat
-
+ Number format to apply to the data cells in the PivotTable.
-
+ StringString
@@ -4251,9 +4341,9 @@ Close-ExcelPackage $Excel -Show
PivotTableStyle
-
+ Apply a table style to the PivotTable.
-
+ NoneCustom
@@ -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.
-
+ StringString
@@ -4350,9 +4440,9 @@ Close-ExcelPackage $Excel -Show
ChartHeight
-
+ Height of the chart in Pixels (400 by default).
-
+ Int32Int32
@@ -4362,9 +4452,9 @@ Close-ExcelPackage $Excel -Show
ChartWidth
-
+ Width of the chart in Pixels (600 by default).
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -4398,9 +4488,9 @@ Close-ExcelPackage $Excel -Show
ChartRowOffSetPixels
-
+ Vertical offset of the chart from the cell corner.
-
+ Int32Int32
@@ -4410,9 +4500,9 @@ Close-ExcelPackage $Excel -Show
ChartColumnOffSetPixels
-
+ Horizontal offset of the chart from the cell corner.
-
+ Int32Int32
@@ -4422,9 +4512,9 @@ Close-ExcelPackage $Excel -Show
ChartType
-
+ Type of chart; defaults to "Pie".
-
+ AreaLine
@@ -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.
-
+ StringString
@@ -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.)
-
+ ExcelAddressBaseExcelAddressBase
@@ -4591,9 +4681,9 @@ Close-ExcelPackage $Excel -Show
ExcelPackage
-
+ An Excel-package object for the workbook.
-
+ ObjectObject
@@ -4603,9 +4693,9 @@ Close-ExcelPackage $Excel -Show
SourceWorkSheet
-
+ Worksheet where the data is found.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -4627,9 +4717,9 @@ Close-ExcelPackage $Excel -Show
PivotRows
-
+ Fields to set as rows in the PivotTable.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -4651,9 +4741,9 @@ Close-ExcelPackage $Excel -Show
PivotColumns
-
+ Fields to set as columns in the PivotTable.
-
+ ObjectObject
@@ -4663,9 +4753,9 @@ Close-ExcelPackage $Excel -Show
PivotFilter
-
+ Fields to use to filter in the PivotTable.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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).
-
+ StringString
@@ -4699,9 +4789,9 @@ Close-ExcelPackage $Excel -Show
NoTotalsInPivot
-
+ Included for compatibility - equivalent to -PivotTotals "None".
-
+ SwitchParameterSwitchParameter
@@ -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)
+ StringString
@@ -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 )
+ StringString
@@ -4747,9 +4861,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericMin
-
+ The starting point for grouping
-
+ DoubleDouble
@@ -4759,9 +4873,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericMax
-
+ The endpoint for grouping
-
+ DoubleDouble
@@ -4771,9 +4885,9 @@ Close-ExcelPackage $Excel -Show
GroupNumericInterval
-
+ The interval for grouping
-
+ DoubleDouble
@@ -4783,9 +4897,9 @@ Close-ExcelPackage $Excel -Show
PivotNumberFormat
-
+ Number format to apply to the data cells in the PivotTable.
-
+ StringString
@@ -4795,9 +4909,9 @@ Close-ExcelPackage $Excel -Show
PivotTableStyle
-
+ Apply a table style to the PivotTable.
-
+ TableStylesTableStyles
@@ -4807,9 +4921,9 @@ Close-ExcelPackage $Excel -Show
PivotChartDefinition
-
+ Use a chart definition instead of specifying chart settings one by one.
-
+ ObjectObject
@@ -4819,9 +4933,9 @@ Close-ExcelPackage $Excel -Show
IncludePivotChart
-
+ If specified, a chart will be included.
-
+ SwitchParameterSwitchParameter
@@ -4831,9 +4945,9 @@ Close-ExcelPackage $Excel -Show
ChartTitle
-
+ Optional title for the pivot chart, by default the title omitted.
-
+ StringString
@@ -4843,9 +4957,9 @@ Close-ExcelPackage $Excel -Show
ChartHeight
-
+ Height of the chart in Pixels (400 by default).
-
+ Int32Int32
@@ -4855,9 +4969,9 @@ Close-ExcelPackage $Excel -Show
ChartWidth
-
+ Width of the chart in Pixels (600 by default).
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -4891,9 +5005,9 @@ Close-ExcelPackage $Excel -Show
ChartRowOffSetPixels
-
+ Vertical offset of the chart from the cell corner.
-
+ Int32Int32
@@ -4903,9 +5017,9 @@ Close-ExcelPackage $Excel -Show
ChartColumnOffSetPixels
-
+ Horizontal offset of the chart from the cell corner.
-
+ Int32Int32
@@ -4915,9 +5029,9 @@ Close-ExcelPackage $Excel -Show
ChartType
-
+ Type of chart; defaults to "Pie".
-
+ eChartTypeeChartType
@@ -4927,9 +5041,9 @@ Close-ExcelPackage $Excel -Show
NoLegend
-
+ If specified hides the chart legend.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -4951,9 +5065,9 @@ Close-ExcelPackage $Excel -Show
ShowPercent
-
+ If specified attaches percentages to slices in a pie chart.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -4975,9 +5089,9 @@ Close-ExcelPackage $Excel -Show
PassThru
-
+ Return the PivotTable so it can be customized.
-
+ SwitchParameterSwitchParameter
@@ -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-WorkSheetExcelPackage
-
+ An object representing an Excel Package.
-
+ ExcelPackageExcelPackage
@@ -5113,9 +5232,9 @@ Boston,2/18/2018,1000
WorksheetName
-
+ The name of the worksheet, 'Sheet1' by default.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ExcelWorksheetExcelWorksheet
@@ -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-WorkSheetExcelWorkbook
-
+ An Excel Workbook to which the Worksheet will be added - a Package contains one Workbook, so you can use whichever fits at the time.
-
+ ExcelWorkbookExcelWorkbook
@@ -5235,9 +5354,9 @@ Boston,2/18/2018,1000
WorksheetName
-
+ The name of the worksheet, 'Sheet1' by default.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ExcelWorksheetExcelWorksheet
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ ExcelWorkbookExcelWorkbook
@@ -5369,9 +5488,9 @@ Boston,2/18/2018,1000
WorksheetName
-
+ The name of the worksheet, 'Sheet1' by default.
-
+ StringString
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.)
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ ExcelWorksheetExcelWorksheet
@@ -5469,9 +5588,9 @@ Boston,2/18/2018,1000
NoClobber
-
+ Ignored but retained for backwards compatibility.
-
+ SwitchParameterSwitchParameter
@@ -5522,7 +5641,12 @@ Boston,2/18/2018,1000
-
+
+
+ Online Version:
+
+
+
@@ -5543,9 +5667,9 @@ Boston,2/18/2018,1000
Close-ExcelPackageExcelPackage
-
+ Package to close.
-
+ ExcelPackageExcelPackage
@@ -5555,9 +5679,9 @@ Boston,2/18/2018,1000
SaveAs
-
+ Save file with a new name (ignored if -NoSave Specified).
-
+ ObjectObject
@@ -5567,9 +5691,9 @@ Boston,2/18/2018,1000
Password
-
+ Password to protect the file.
-
+ StringString
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -5627,9 +5751,9 @@ Boston,2/18/2018,1000
Show
-
+ Open the file in Excel.
-
+ SwitchParameterSwitchParameter
@@ -5639,9 +5763,9 @@ Boston,2/18/2018,1000
NoSave
-
+ Abandon the file without saving.
-
+ SwitchParameterSwitchParameter
@@ -5651,9 +5775,9 @@ Boston,2/18/2018,1000
SaveAs
-
+ Save file with a new name (ignored if -NoSave Specified).
-
+ ObjectObject
@@ -5663,9 +5787,9 @@ Boston,2/18/2018,1000
Password
-
+ Password to protect the file.
-
+ StringString
@@ -5675,9 +5799,9 @@ Boston,2/18/2018,1000
Calculate
-
+ Attempt to recalculation the workbook before saving
-
+ SwitchParameterSwitchParameter
@@ -5709,7 +5833,12 @@ Boston,2/18/2018,1000
-
+
+
+ Online Version:
+
+
+
@@ -5733,9 +5862,9 @@ Boston,2/18/2018,1000
Compare-WorkSheetReferencefile
-
+ First file to compare.
-
+ ObjectObject
@@ -5745,9 +5874,9 @@ Boston,2/18/2018,1000
Differencefile
-
+ Second file to compare.
-
+ ObjectObject
@@ -5757,9 +5886,9 @@ Boston,2/18/2018,1000
WorkSheetName
-
+ Name(s) of worksheets to compare.
-
+ ObjectObject
@@ -5769,9 +5898,9 @@ Boston,2/18/2018,1000
Property
-
+ Properties to include in the comparison - supports wildcards, default is "*".
-
+ ObjectObject
@@ -5781,9 +5910,9 @@ Boston,2/18/2018,1000
ExcludeProperty
-
+ Properties to exclude from the comparison - supports wildcards.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -5829,9 +5958,9 @@ Boston,2/18/2018,1000
BackgroundColor
-
+ If specified, highlights the rows with differences.
-
+ ObjectObject
@@ -5841,9 +5970,9 @@ Boston,2/18/2018,1000
TabColor
-
+ If specified identifies the tabs which contain difference rows (ignored if -BackgroundColor is omitted).
-
+ ObjectObject
@@ -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".
-
+ ObjectObject
@@ -5865,9 +5994,9 @@ Boston,2/18/2018,1000
FontColor
-
+ If specified, highlights the DIFF columns in rows which have the same key.
-
+ ObjectObject
@@ -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-WorkSheetReferencefile
-
+ First file to compare.
-
+ ObjectObject
@@ -5947,9 +6076,9 @@ Boston,2/18/2018,1000
Differencefile
-
+ Second file to compare.
-
+ ObjectObject
@@ -5959,9 +6088,9 @@ Boston,2/18/2018,1000
WorkSheetName
-
+ Name(s) of worksheets to compare.
-
+ ObjectObject
@@ -5971,9 +6100,9 @@ Boston,2/18/2018,1000
Property
-
+ Properties to include in the comparison - supports wildcards, default is "*".
-
+ ObjectObject
@@ -5983,9 +6112,9 @@ Boston,2/18/2018,1000
ExcludeProperty
-
+ Properties to exclude from the comparison - supports wildcards.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -6030,9 +6159,9 @@ Boston,2/18/2018,1000
BackgroundColor
-
+ If specified, highlights the rows with differences.
-
+ ObjectObject
@@ -6042,9 +6171,9 @@ Boston,2/18/2018,1000
TabColor
-
+ If specified identifies the tabs which contain difference rows (ignored if -BackgroundColor is omitted).
-
+ ObjectObject
@@ -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".
-
+ ObjectObject
@@ -6066,9 +6195,9 @@ Boston,2/18/2018,1000
FontColor
-
+ If specified, highlights the DIFF columns in rows which have the same key.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -6148,9 +6277,9 @@ Boston,2/18/2018,1000
Differencefile
-
+ Second file to compare.
-
+ ObjectObject
@@ -6160,9 +6289,9 @@ Boston,2/18/2018,1000
WorkSheetName
-
+ Name(s) of worksheets to compare.
-
+ ObjectObject
@@ -6172,9 +6301,9 @@ Boston,2/18/2018,1000
Property
-
+ Properties to include in the comparison - supports wildcards, default is "*".
-
+ ObjectObject
@@ -6184,9 +6313,9 @@ Boston,2/18/2018,1000
ExcludeProperty
-
+ Properties to exclude from the comparison - supports wildcards.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -6244,9 +6373,9 @@ Boston,2/18/2018,1000
BackgroundColor
-
+ If specified, highlights the rows with differences.
-
+ ObjectObject
@@ -6256,9 +6385,9 @@ Boston,2/18/2018,1000
TabColor
-
+ If specified identifies the tabs which contain difference rows (ignored if -BackgroundColor is omitted).
-
+ ObjectObject
@@ -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".
-
+ ObjectObject
@@ -6280,9 +6409,9 @@ Boston,2/18/2018,1000
FontColor
-
+ If specified, highlights the DIFF columns in rows which have the same key.
-
+ ObjectObject
@@ -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).
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -6340,9 +6469,9 @@ Boston,2/18/2018,1000
ExcludeDifferent
-
+ If specified, the result includes only the rows where both are equal.
-
+ SwitchParameterSwitchParameter
@@ -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. EXAMPLESConvert-ExcelRangeToImagePath
-
+ Path to the Excel file
-
+ ObjectObject
@@ -6457,9 +6592,9 @@ Boston,2/18/2018,1000
WorkSheetname
-
+ Worksheet name - if none is specified "Sheet1" will be assumed
-
+ ObjectObject
@@ -6469,9 +6604,9 @@ Boston,2/18/2018,1000
Range
-
+ Range of cells within the sheet, e.g "A1:Z99"
-
+ ObjectObject
@@ -6481,9 +6616,9 @@ Boston,2/18/2018,1000
Destination
-
+ A bmp, png or jpg file where the result will be saved
-
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -6519,9 +6654,9 @@ Boston,2/18/2018,1000
WorkSheetname
-
+ Worksheet name - if none is specified "Sheet1" will be assumed
-
+ ObjectObject
@@ -6531,9 +6666,9 @@ Boston,2/18/2018,1000
Range
-
+ Range of cells within the sheet, e.g "A1:Z99"
-
+ ObjectObject
@@ -6543,9 +6678,9 @@ Boston,2/18/2018,1000
Destination
-
+ A bmp, png or jpg file where the result will be saved
-
+ ObjectObject
@@ -6555,9 +6690,9 @@ Boston,2/18/2018,1000
Show
-
+ If specified opens the image in the default viewer.
-
+ SwitchParameterSwitchParameter
@@ -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-CSVConvertFrom-ExcelSheetPath
-
+ The path to the .XLSX file which will be exported.
-
+ StringString
@@ -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.
-
+ StringString
@@ -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
-
+ StringString
@@ -6629,9 +6769,9 @@ Boston,2/18/2018,1000
Encoding
-
+ Sets the text encoding for the output data file; UTF8 bu default
-
+ EncodingEncoding
@@ -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
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -6785,9 +6925,9 @@ Boston,2/18/2018,1000
Encoding
-
+ Sets the text encoding for the output data file; UTF8 bu default
-
+ EncodingEncoding
@@ -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.
-
+ ObjectObject
@@ -6809,9 +6949,9 @@ Boston,2/18/2018,1000
Extension
-
+ Sets the file extension for the exported data, defaults to CSV
-
+ StringString
@@ -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.
-
+ StringString
@@ -6833,9 +6973,9 @@ Boston,2/18/2018,1000
Path
-
+ The path to the .XLSX file which will be exported.
-
+ StringString
@@ -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
-
+ ObjectObject
@@ -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
-
+ StringString
@@ -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-ExcelToSQLInsertTableName
-
+ Name of the target database table.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -7136,9 +7276,9 @@ Boston,2/18/2018,1000
UseMSSQLSyntax
-
- {{ Fill UseMSSQLSyntax Description }}
-
+
+
+ SwitchParameterSwitchParameter
@@ -7204,9 +7344,14 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
-
-
-
+
+
+ Online Version:
+
+
+
+
+ Copy-ExcelWorkSheetCopy
@@ -7223,9 +7368,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
Copy-ExcelWorkSheetSourceObject
-
+ An ExcelWorkbook or ExcelPackage object or the path to an XLSx file where the data is found.
-
+ ObjectObject
@@ -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).
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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).
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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:\> 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:\> 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
-
+
+
+ Online Version:
+
+
+
@@ -7400,9 +7550,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
Expand-NumberFormatNumberFormat
-
+ The format string to Expand
-
+ ObjectObject
@@ -7415,9 +7565,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
NumberFormat
-
+ The format string to Expand
-
+ ObjectObject
@@ -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-ExcelPath
-
+ Path to a new or existing .XLSX file.
-
+ StringString
@@ -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
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -7538,9 +7713,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
Password
-
+ Sets password protection on the workbook.
-
+ StringString
@@ -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.
-
+ StringString
@@ -7585,9 +7760,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ NoneSolid
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ StringString
@@ -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.
+ ObjectObject
@@ -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.
-
+ HashtableHashtable
@@ -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).
-
+ AreaLine
@@ -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
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
+ NoneCustom
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -8255,9 +8430,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
StartColumn
-
+ Column to start adding data - 1 by default.
-
+ Int32Int32
@@ -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
-
+ StringString
@@ -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.
-
+ ScriptBlockScriptBlock
@@ -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.
-
+ StringString
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -8523,9 +8718,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
Password
-
+ Sets password protection on the workbook.
-
+ StringString
@@ -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.
-
+ StringString
@@ -8570,9 +8765,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ NoneSolid
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ StringString
@@ -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.
+ ObjectObject
@@ -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.
-
+ HashtableHashtable
@@ -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).
-
+ AreaLine
@@ -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
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
+ NoneCustom
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -9240,9 +9435,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
StartColumn
-
+ Column to start adding data - 1 by default.
-
+ Int32Int32
@@ -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
-
+ StringString
@@ -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.
-
+ ScriptBlockScriptBlock
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -9511,9 +9706,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
Password
-
+ Sets password protection on the workbook.
-
+ StringString
@@ -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).
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -9560,9 +9755,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ ExcelFillStyleExcelFillStyle
@@ -9572,9 +9767,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
TitleBold
-
+ Sets the title in boldface type.
-
+ SwitchParameterSwitchParameter
@@ -9584,9 +9779,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
TitleSize
-
+ Sets the point size for the title.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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".
-
+ StringString
@@ -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.
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ HashtableHashtable
@@ -9706,9 +9901,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
IncludePivotChart
-
+ Include a chart with the PivotTable - implies -IncludePivotTable.
-
+ SwitchParameterSwitchParameter
@@ -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).
-
+ eChartTypeeChartType
@@ -9730,9 +9925,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
NoLegend
-
+ Exclude the legend from the PivotChart.
-
+ SwitchParameterSwitchParameter
@@ -9742,9 +9937,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
ShowCategory
-
+ Add category labels to the PivotChart.
-
+ SwitchParameterSwitchParameter
@@ -9754,9 +9949,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
ShowPercent
-
+ Add percentage labels to the PivotChart.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -9802,9 +9997,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
FreezeTopRow
-
+ Freezes headers etc. in the top row.
-
+ SwitchParameterSwitchParameter
@@ -9814,9 +10009,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
FreezeFirstColumn
-
+ Freezes titles etc. in the left column.
-
+ SwitchParameterSwitchParameter
@@ -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 ).
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -9862,9 +10057,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
BoldTopRow
-
+ Makes the top row boldface.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
+ TableStylesTableStyles
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.)
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -10069,9 +10284,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
AutoNameRange
-
+ Makes each column a named range.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ Int32Int32
@@ -10093,9 +10308,9 @@ INSERT INTO Movies ('Movie Name', 'Year', 'Rating') Values('The Avengers', '2012
StartColumn
-
+ Column to start adding data - 1 by default.
-
+ Int32Int32
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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
-
+ StringString
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ ScriptBlockScriptBlock
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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".
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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/ImportExcelhttps://github.com/dfinke/ImportExcel
@@ -10598,9 +10838,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Get-ExcelSheetInfoPath
-
+ Specifies the path to the Excel file. (This parameter is required.)
-
+ ObjectObject
@@ -10613,9 +10853,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Path
-
+ Specifies the path to the Excel file. (This parameter is required.)
-
+ ObjectObject
@@ -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/ImportExcelhttps://github.com/dfinke/ImportExcel
@@ -10664,9 +10908,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Get-ExcelWorkbookInfoPath
-
+ Specifies the path to the Excel file. This parameter is required.
-
+ StringString
@@ -10679,9 +10923,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Path
-
+ Specifies the path to the Excel file. This parameter is required.
-
+ StringString
@@ -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/ImportExcelhttps://github.com/dfinke/ImportExcel
@@ -10733,9 +10981,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Import-ExcelPath
-
+ Specifies the path to the Excel file.
-
+ StringString
@@ -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.
-
+ StringString
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ StringString
@@ -10868,9 +11116,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Import-ExcelPath
-
+ Specifies the path to the Excel file.
-
+ StringString
@@ -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.
-
+ StringString
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ StringString
@@ -11005,9 +11253,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Import-ExcelPath
-
+ Specifies the path to the Excel file.
-
+ StringString
@@ -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.
-
+ StringString
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ StringString
@@ -11128,9 +11376,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Import-ExcelWorksheetName
-
+ 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.
-
+ StringString
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ StringString
@@ -11264,9 +11512,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Import-ExcelWorksheetName
-
+ 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.
-
+ StringString
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ StringString
@@ -11402,9 +11650,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Import-ExcelWorksheetName
-
+ 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.
-
+ StringString
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ StringString
@@ -11526,9 +11774,9 @@ PS\> Export-Excel -ExcelPackage $excel -WorksheetName "Processes" -IncludePiv
Path
-
+ Specifies the path to the Excel file.
-
+ StringString
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ StringString
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -11848,6 +12096,10 @@ City : Brussels
+
+ Online Version:
+
+ https://github.com/dfinke/ImportExcelhttps://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-WorksheetPath
-
+ Path to a new or existing .XLSX file.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -12043,9 +12294,9 @@ City : Brussels
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ NoneSolid
@@ -12076,9 +12327,9 @@ City : Brussels
TitleBackgroundColor
-
+ Sets the cell background color for the title cell.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ HashtableHashtable
@@ -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.
-
+ StringString
@@ -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-WorksheetPath
-
+ Path to a new or existing .XLSX file.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -12377,9 +12628,9 @@ City : Brussels
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ NoneSolid
@@ -12410,9 +12661,9 @@ City : Brussels
TitleBackgroundColor
-
+ Sets the cell background color for the title cell.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ HashtableHashtable
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -12528,9 +12779,9 @@ City : Brussels
TableStyle
-
+ Selects the style for the named table - defaults to "Medium6".
-
+ NoneCustom
@@ -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-WorksheetExcelPackage
-
+ An object representing an Excel Package - either from Open-ExcelPackage or specifying -PassThru to Export-Excel.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -12799,9 +13050,9 @@ City : Brussels
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ NoneSolid
@@ -12832,9 +13083,9 @@ City : Brussels
TitleBackgroundColor
-
+ Sets the cell background color for the title cell.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ HashtableHashtable
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -12950,9 +13201,9 @@ City : Brussels
TableStyle
-
+ Selects the style for the named table - defaults to "Medium6".
-
+ NoneCustom
@@ -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-WorksheetExcelPackage
-
+ An object representing an Excel Package - either from Open-ExcelPackage or specifying -PassThru to Export-Excel.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -13232,9 +13483,9 @@ City : Brussels
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ NoneSolid
@@ -13265,9 +13516,9 @@ City : Brussels
TitleBackgroundColor
-
+ Sets the cell background color for the title cell.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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).
-
+ HashtableHashtable
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -13419,9 +13670,9 @@ City : Brussels
ExcelPackage
-
+ An object representing an Excel Package - either from Open-ExcelPackage or specifying -PassThru to Export-Excel.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -13491,9 +13742,9 @@ City : Brussels
AutoSize
-
+ Sets the width of the Excel columns to display all the data in their cells.
-
+ SwitchParameterSwitchParameter
@@ -13503,9 +13754,9 @@ City : Brussels
FreezeTopRow
-
+ Freezes headers etc. in the top row.
-
+ SwitchParameterSwitchParameter
@@ -13515,9 +13766,9 @@ City : Brussels
FreezeFirstColumn
-
+ Freezes titles etc. in the left column.
-
+ SwitchParameterSwitchParameter
@@ -13527,9 +13778,9 @@ City : Brussels
FreezeTopRowFirstColumn
-
+ Freezes top row and left column (equivalent to Freeze pane 2,2 ).
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -13563,9 +13814,9 @@ City : Brussels
BoldTopRow
-
+ Makes the top row boldface.
-
+ SwitchParameterSwitchParameter
@@ -13575,9 +13826,9 @@ City : Brussels
HideSource
-
+ If specified, hides the sheets that the data is copied from.
-
+ SwitchParameterSwitchParameter
@@ -13587,9 +13838,9 @@ City : Brussels
Title
-
+ Text of a title to be placed in Cell A1.
-
+ StringString
@@ -13599,9 +13850,9 @@ City : Brussels
TitleFillPattern
-
+ Sets the fill pattern for the title cell.
-
+ ExcelFillStyleExcelFillStyle
@@ -13611,9 +13862,9 @@ City : Brussels
TitleBackgroundColor
-
+ Sets the cell background color for the title cell.
-
+ ObjectObject
@@ -13623,9 +13874,9 @@ City : Brussels
TitleBold
-
+ Sets the title in boldface type.
-
+ SwitchParameterSwitchParameter
@@ -13635,9 +13886,9 @@ City : Brussels
TitleSize
-
+ Sets the point size for the title.
-
+ Int32Int32
@@ -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).
-
+ HashtableHashtable
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -13707,9 +13958,9 @@ City : Brussels
RangeName
-
+ Makes the data in the worksheet a named range.
-
+ StringString
@@ -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.
-
+ StringString
@@ -13731,9 +13982,9 @@ City : Brussels
TableStyle
-
+ Selects the style for the named table - defaults to "Medium6".
-
+ TableStylesTableStyles
@@ -13743,9 +13994,9 @@ City : Brussels
ReturnRange
-
+ If specified, returns the range of cells in the combined sheet, in the format "A1:Z100".
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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-MultipleSheetsPath
-
+ Paths to the files to be merged. Files are also accepted
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -13870,9 +14122,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
ChangeBackgroundColor
-
+ Sets the background color for changed rows.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -13942,9 +14194,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
OutputFile
-
+ File to write output to.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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 "*".
-
+ ObjectObject
@@ -13978,9 +14230,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
ExcludeProperty
-
+ Properties to exclude from the the comparison - supports wildcards.
-
+ ObjectObject
@@ -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".
-
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -14097,9 +14349,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
WorksheetName
-
+ Name(s) of Worksheets to compare.
-
+ ObjectObject
@@ -14109,9 +14361,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
OutputFile
-
+ File to write output to.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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 "*".
-
+ ObjectObject
@@ -14145,9 +14397,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
ExcludeProperty
-
+ Properties to exclude from the the comparison - supports wildcards.
-
+ ObjectObject
@@ -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".
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -14181,9 +14433,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
ChangeBackgroundColor
-
+ Sets the background color for changed rows.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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).
-
+ SwitchParameterSwitchParameter
@@ -14241,9 +14493,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
Show
-
+ If specified, opens the output workbook.
-
+ SwitchParameterSwitchParameter
@@ -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-WorksheetReferencefile
-
+ 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
-
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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 )
-
+ Int32Int32
@@ -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
+ ObjectObject
@@ -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
+ ObjectObject
- [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)
+ ObjectObject
- [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
+ 1Merge-WorksheetReferencefile
-
+ 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
-
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -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.
-
+
ObjectObject
@@ -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 )
-
+ Int32Int32
@@ -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
-
+ ObjectObject
@@ -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.
-
+
ObjectObject
@@ -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 )
-
+ Int32Int32
@@ -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
+ ObjectObject
@@ -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)
+ ObjectObject
- [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
+ ObjectObject
- [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
+ 1Referencefile
-
+ 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
-
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -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)
-
+ ObjectObject
@@ -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 )
-
+ Int32Int32
@@ -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
+
+ ### -NoHeaderAutomatically 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 "=>"
+
+ 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-ConditionalFormattingIconSetRange
-
+ The range of cells that the conditional format applies to.
-
+ ObjectObject
@@ -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"
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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"
-
+ ObjectObject
@@ -16327,9 +15189,9 @@ PS\> Join-Worksheet -Path "$env:COMPUTERNAME.xlsx"-WorkSheetName Summary -Tit
Reverse
-
+ Use the icons in the reverse order.
-
+ SwitchParameterSwitchParameter
@@ -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-ConditionalTextText
-
+ The text (or other value) to use in the rule. Note that Equals, GreaterThan/LessThan rules require text to wrapped in double quotes.
-
+ ObjectObject
@@ -16397,9 +15259,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
ConditionalTextColor
-
+ The font color for the cell - by default: "DarkRed".
-
+ ObjectObject
@@ -16409,9 +15271,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
BackgroundColor
-
+ The fill color for the cell - by default: "LightPink".
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -16433,9 +15295,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
PatternType
-
+ The background pattern for the cell - by default: "Solid"
-
+ NoneSolid
@@ -16466,9 +15328,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
ConditionalType
-
+ One of the supported rules; by default "ContainsText" is selected.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -16493,9 +15355,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
ConditionalTextColor
-
+ The font color for the cell - by default: "DarkRed".
-
+ ObjectObject
@@ -16505,9 +15367,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
BackgroundColor
-
+ The fill color for the cell - by default: "LightPink".
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -16529,9 +15391,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
PatternType
-
+ The background pattern for the cell - by default: "Solid"
-
+ ExcelFillStyleExcelFillStyle
@@ -16541,9 +15403,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalFormat $cfdef -show
ConditionalType
-
+ One of the supported rules; by default "ContainsText" is selected.
-
+ ObjectObject
@@ -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 \<=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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ TopLeft
@@ -16674,9 +15536,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
LegendSize
-
+ Font size for the key.
-
+ ObjectObject
@@ -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
-
+ ObjectObject
@@ -16698,9 +15560,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
TitleSize
-
+ Sets the point size for the title.
-
+ Int32Int32
@@ -16710,9 +15572,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XAxisTitleText
-
+ Specifies a title for the X-axis.
-
+ StringString
@@ -16722,9 +15584,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XAxisTitleSize
-
+ Sets the font size for the axis title.
-
+ ObjectObject
@@ -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.
+ StringString
@@ -16746,9 +15608,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
Header
-
+ No longer used. This may be removed in future versions.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -16782,9 +15644,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XMaxValue
-
+ Maximum value for the scale along the X-axis.
-
+ ObjectObject
@@ -16794,9 +15656,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XMinValue
-
+ Minimum value for the scale along the X-axis.
-
+ ObjectObject
@@ -16806,9 +15668,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XAxisPosition
-
+ Position for the X-axis ("Top" or" Bottom").
-
+ LeftBottom
@@ -16824,9 +15686,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YAxisTitleText
-
+ Specifies a title for the Y-axis.
-
+ StringString
@@ -16836,9 +15698,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YAxisTitleSize
-
+ Sets the font size for the Y-axis title.
-
+ ObjectObject
@@ -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
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ AreaLine
@@ -16971,9 +15833,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YMaxValue
-
+ Maximum value on the Y-axis.
-
+ ObjectObject
@@ -16983,9 +15845,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YMinValue
-
+ Minimum value on the Y-axis.
-
+ ObjectObject
@@ -16995,9 +15857,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YAxisPosition
-
+ Position for the Y-axis ("Left" or "Right").
-
+ LeftBottom
@@ -17013,9 +15875,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
ChartTrendLine
-
+ Superimposes one of Excel's trenline types on the chart.
-
+ ExponentialLinear
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ ObjectObject
@@ -17057,9 +15919,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
Width
-
+ Width of the chart in pixels. Defaults to 500.
-
+ ObjectObject
@@ -17069,9 +15931,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
Height
-
+ Height of the chart in pixels. Defaults to 350.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -17185,9 +16047,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
Header
-
+ No longer used. This may be removed in future versions.
-
+ ObjectObject
@@ -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".
-
+ eChartTypeeChartType
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ ObjectObject
@@ -17245,9 +16107,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
Width
-
+ Width of the chart in pixels. Defaults to 500.
-
+ ObjectObject
@@ -17257,9 +16119,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
Height
-
+ Height of the chart in pixels. Defaults to 350.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ eLegendPositioneLegendPosition
@@ -17329,9 +16191,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
LegendSize
-
+ Font size for the key.
-
+ ObjectObject
@@ -17341,9 +16203,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
LegendBold
-
+ Sets the key in bold type.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -17365,9 +16227,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
ShowCategory
-
+ Attaches a category label in charts which support this.
-
+ SwitchParameterSwitchParameter
@@ -17377,9 +16239,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
ShowPercent
-
+ Attaches a percentage label in charts which support this.
-
+ SwitchParameterSwitchParameter
@@ -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
-
+ ObjectObject
@@ -17401,9 +16263,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
TitleBold
-
+ Sets the title in bold face.
-
+ SwitchParameterSwitchParameter
@@ -17413,9 +16275,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
TitleSize
-
+ Sets the point size for the title.
-
+ Int32Int32
@@ -17425,9 +16287,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XAxisTitleText
-
+ Specifies a title for the X-axis.
-
+ StringString
@@ -17437,9 +16299,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XAxisTitleBold
-
+ Sets the X-axis title in bold face.
-
+ SwitchParameterSwitchParameter
@@ -17449,9 +16311,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XAxisTitleSize
-
+ Sets the font size for the axis title.
-
+ ObjectObject
@@ -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.
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -17497,9 +16359,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XMaxValue
-
+ Maximum value for the scale along the X-axis.
-
+ ObjectObject
@@ -17509,9 +16371,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XMinValue
-
+ Minimum value for the scale along the X-axis.
-
+ ObjectObject
@@ -17521,9 +16383,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
XAxisPosition
-
+ Position for the X-axis ("Top" or" Bottom").
-
+ eAxisPositioneAxisPosition
@@ -17533,9 +16395,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YAxisTitleText
-
+ Specifies a title for the Y-axis.
-
+ StringString
@@ -17545,9 +16407,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YAxisTitleBold
-
+ Sets the Y-axis title in bold face.
-
+ SwitchParameterSwitchParameter
@@ -17557,9 +16419,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YAxisTitleSize
-
+ Sets the font size for the Y-axis title.
-
+ ObjectObject
@@ -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
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -17605,9 +16467,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YMaxValue
-
+ Maximum value on the Y-axis.
-
+ ObjectObject
@@ -17617,9 +16479,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YMinValue
-
+ Minimum value on the Y-axis.
-
+ ObjectObject
@@ -17629,9 +16491,9 @@ PS\> Export-Excel -ExcelPackage $excel -ConditionalText $ct,$ct2 -show
YAxisPosition
-
+ Position for the Y-axis ("Left" or "Right").
-
+ eAxisPositioneAxisPosition
@@ -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-PivotTableDefinitionPivotTableName
-
+ Name for the new pivot tableThis command previously had a typo - and has an alias to avoid breaking scripts This will be removed in a future release
-
+ ObjectObject
@@ -17690,9 +16557,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
SourceWorkSheet
-
+ Worksheet where the data is found
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -17714,9 +16581,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotRows
-
+ Fields to set as rows in the PivotTable
-
+ ObjectObject
@@ -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
-
+ HashtableHashtable
@@ -17738,9 +16605,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotColumns
-
+ Fields to set as columns in the PivotTable
-
+ ObjectObject
@@ -17750,9 +16617,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotFilter
-
+ Fields to use to filter in the PivotTable
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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)
+ StringString
@@ -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)
-
+ YearsQuarters
@@ -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 )
+ StringString
@@ -17841,9 +16732,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericMin
-
+ The starting point for grouping
-
+ DoubleDouble
@@ -17853,9 +16744,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericMax
-
+ The endpoint for grouping
-
+ DoubleDouble
@@ -17865,9 +16756,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericInterval
-
+ The interval for grouping
-
+ DoubleDouble
@@ -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
-
+ StringString
@@ -17889,9 +16780,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotTableStyle
-
+ Apply a table style to the PivotTable
-
+ NoneCustom
@@ -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
-
+ ObjectObject
@@ -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-PivotTableDefinitionPivotTableName
-
+ Name for the new pivot tableThis command previously had a typo - and has an alias to avoid breaking scripts This will be removed in a future release
-
+ ObjectObject
@@ -18004,9 +16895,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
SourceWorkSheet
-
+ Worksheet where the data is found
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -18028,9 +16919,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotRows
-
+ Fields to set as rows in the PivotTable
-
+ ObjectObject
@@ -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
-
+ HashtableHashtable
@@ -18052,9 +16943,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotColumns
-
+ Fields to set as columns in the PivotTable
-
+ ObjectObject
@@ -18064,9 +16955,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotFilter
-
+ Fields to use to filter in the PivotTable
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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)
+ StringString
@@ -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)
-
+ YearsQuarters
@@ -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 )
+ StringString
@@ -18155,9 +17070,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericMin
-
+ The starting point for grouping
-
+ DoubleDouble
@@ -18167,9 +17082,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericMax
-
+ The endpoint for grouping
-
+ DoubleDouble
@@ -18179,9 +17094,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericInterval
-
+ The interval for grouping
-
+ DoubleDouble
@@ -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
-
+ StringString
@@ -18203,9 +17118,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotTableStyle
-
+ Apply a table style to the PivotTable
-
+ NoneCustom
@@ -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.
-
+ StringString
@@ -18302,9 +17217,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartHeight
-
+ Height of the chart in Pixels (400 by default)
-
+ Int32Int32
@@ -18314,9 +17229,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartWidth
-
+ Width of the chart in Pixels (600 by default)
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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)
-
+ Int32Int32
@@ -18350,9 +17265,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartRowOffSetPixels
-
+ Vertical offset of the chart from the cell corner.
-
+ Int32Int32
@@ -18362,9 +17277,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartColumnOffSetPixels
-
+ Horizontal offset of the chart from the cell corner.
-
+ Int32Int32
@@ -18374,9 +17289,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartType
-
+ Type of chart
-
+ AreaLine
@@ -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 tableThis command previously had a typo - and has an alias to avoid breaking scripts This will be removed in a future release
-
+ ObjectObject
@@ -18521,9 +17436,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
SourceWorkSheet
-
+ Worksheet where the data is found
-
+ ObjectObject
@@ -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.
-
+ ObjectObject
@@ -18545,9 +17460,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotRows
-
+ Fields to set as rows in the PivotTable
-
+ ObjectObject
@@ -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
-
+ HashtableHashtable
@@ -18569,9 +17484,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotColumns
-
+ Fields to set as columns in the PivotTable
-
+ ObjectObject
@@ -18581,9 +17496,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotFilter
-
+ Fields to use to filter in the PivotTable
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -18617,9 +17532,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
NoTotalsInPivot
-
+ Included for compatibility - equivalent to -PivotTotals "None"
-
+ SwitchParameterSwitchParameter
@@ -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)
+ StringString
@@ -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 )
+ StringString
@@ -18665,9 +17604,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericMin
-
+ The starting point for grouping
-
+ DoubleDouble
@@ -18677,9 +17616,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericMax
-
+ The endpoint for grouping
-
+ DoubleDouble
@@ -18689,9 +17628,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
GroupNumericInterval
-
+ The interval for grouping
-
+ DoubleDouble
@@ -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
-
+ StringString
@@ -18713,9 +17652,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
PivotTableStyle
-
+ Apply a table style to the PivotTable
-
+ TableStylesTableStyles
@@ -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
-
+ ObjectObject
@@ -18737,9 +17676,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
IncludePivotChart
-
+ If specified a chart Will be included.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ StringString
@@ -18761,9 +17700,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartHeight
-
+ Height of the chart in Pixels (400 by default)
-
+ Int32Int32
@@ -18773,9 +17712,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartWidth
-
+ Width of the chart in Pixels (600 by default)
-
+ Int32Int32
@@ -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).
-
+ Int32Int32
@@ -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)
-
+ Int32Int32
@@ -18809,9 +17748,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartRowOffSetPixels
-
+ Vertical offset of the chart from the cell corner.
-
+ Int32Int32
@@ -18821,9 +17760,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartColumnOffSetPixels
-
+ Horizontal offset of the chart from the cell corner.
-
+ Int32Int32
@@ -18833,9 +17772,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
ChartType
-
+ Type of chart
-
+ eChartTypeeChartType
@@ -18845,9 +17784,9 @@ PS\> 0..360 | ForEach-Object {[pscustomobject][ordered]@{x = $_; Sinx = "=Sin
NoLegend
-
+ If specified hides the chart legend
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -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-ExcelPackagePath
-
+ The path to the file to open.
-
+ ObjectObject
@@ -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).
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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).
-
+ StringString
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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-WorkSheetFullName
-
+ The fully qualified path to the XLSX file(s)
-
+ ObjectObject
@@ -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)
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -19178,9 +18127,9 @@ PS\> Close-ExcelPackage $excel -Show
WhatIf
-
+ Shows what would happen if the cmdlet runs. The cmdlet is not run.
-
+ SwitchParameterSwitchParameter
@@ -19190,9 +18139,9 @@ PS\> Close-ExcelPackage $excel -Show
Confirm
-
+ Prompts you for confirmation before running the cmdlet.
-
+ SwitchParameterSwitchParameter
@@ -19238,7 +18187,12 @@ PS\> Close-ExcelPackage $excel -Show
-
+
+
+ Online Version:
+
+
+
@@ -19257,9 +18211,9 @@ PS\> Close-ExcelPackage $excel -Show
Select-WorksheetExcelPackage
-
+ An object representing an ExcelPackage.
-
+ ExcelPackageExcelPackage
@@ -19269,9 +18223,9 @@ PS\> Close-ExcelPackage $excel -Show
WorksheetName
-
+ The name of the worksheet "Sheet1" by default.
-
+ StringString
@@ -19284,9 +18238,9 @@ PS\> Close-ExcelPackage $excel -Show
Select-WorksheetExcelWorkbook
-
+ 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.
-
+ ExcelWorkbookExcelWorkbook
@@ -19296,9 +18250,9 @@ PS\> Close-ExcelPackage $excel -Show
WorksheetName
-
+ The name of the worksheet "Sheet1" by default.
-
+ StringString
@@ -19311,9 +18265,9 @@ PS\> Close-ExcelPackage $excel -Show
Select-WorksheetExcelWorksheet
-
+ An object representing an Excel worksheet.
-
+ ExcelWorksheetExcelWorksheet
@@ -19326,9 +18280,9 @@ PS\> Close-ExcelPackage $excel -Show
ExcelPackage
-
+ An object representing an ExcelPackage.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ ExcelWorkbookExcelWorkbook
@@ -19350,9 +18304,9 @@ PS\> Close-ExcelPackage $excel -Show
WorksheetName
-
+ The name of the worksheet "Sheet1" by default.
-
+ StringString
@@ -19362,9 +18316,9 @@ PS\> Close-ExcelPackage $excel -Show
ExcelWorksheet
-
+ An object representing an Excel worksheet.
-
+ ExcelWorksheetExcelWorksheet
@@ -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-SQLDataToExcelConnection
-
+ 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.
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -19453,9 +18413,9 @@ PS\> Close-ExcelPackage $excel -Show
QueryTimeout
-
+ Override the default query time of 30 seconds.
-
+ Int32Int32
@@ -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-SQLDataToExcelConnection
-
+ 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.
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -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.
-
+ StringString
@@ -19529,9 +18489,9 @@ PS\> Close-ExcelPackage $excel -Show
QueryTimeout
-
+ Override the default query time of 30 seconds.
-
+ Int32Int32
@@ -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-SQLDataToExcelSession
-
+ An active ODBC Connection or SQL connection object representing a session with a database which will be queried to get the data .
-
+ ObjectObject
@@ -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.
-
+ StringString
@@ -19579,9 +18539,9 @@ PS\> Close-ExcelPackage $excel -Show
QueryTimeout
-
+ Override the default query time of 30 seconds.
-
+ Int32Int32
@@ -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-SQLDataToExcelQueryTimeout
-
+ Override the default query time of 30 seconds.
-
+ Int32Int32
@@ -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.
-
+ DataTableDataTable
@@ -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.
-
+ ObjectObject
@@ -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 .
-
+ ObjectObject
@@ -19670,9 +18630,9 @@ PS\> Close-ExcelPackage $excel -Show
MsSQLserver
-
+ Specifies the connection string is for SQL server, not ODBC.
-
+ SwitchParameterSwitchParameter
@@ -19682,9 +18642,9 @@ PS\> Close-ExcelPackage $excel -Show
DataBase
-
+ Switches to a specific database on a SQL server.
-
+ StringString
@@ -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.
-
+ StringString
@@ -19706,9 +18666,9 @@ PS\> Close-ExcelPackage $excel -Show
QueryTimeout
-
+ Override the default query time of 30 seconds.
-
+ Int32Int32
@@ -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.
-
+ DataTableDataTable
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -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> Export-Excel -inputObject $Table -Path ".\demo3.xlsx" -WorkSheetname Gpwinners -autosize -TableName winners -TableStyle Light6 -show
+ This is quicker than using PS> 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-ExcelColumnExcelPackage
-
+ If specifying the worksheet by name, the ExcelPackage object which contains the worksheet also needs to be passed.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ StringString
@@ -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.
-
+ ObjectObject
@@ -19875,9 +18839,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
StartRow
-
+ First row to fill data in.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -19899,9 +18863,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Heading
-
+ Optional column heading.
-
+ ObjectObject
@@ -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.
+ ObjectObject
@@ -19923,9 +18887,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the row.
-
+ NoneHair
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ NoneSingle
@@ -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).
-
+ NoneBaseline
@@ -20043,9 +19007,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -20055,9 +19019,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -20067,9 +19031,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -20079,9 +19043,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - "Solid" by default.
-
+ NoneSolid
@@ -20112,9 +19076,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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".
-
+ GeneralLeft
@@ -20157,9 +19121,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ TopCenter
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ SingleSingle
@@ -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-ExcelColumnWorksheet
-
+ This passes the worksheet object instead of passing a sheet name and an Excelpackage object.
-
+ ExcelWorksheetExcelWorksheet
@@ -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.
-
+ ObjectObject
@@ -20282,9 +19246,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
StartRow
-
+ First row to fill data in.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -20306,9 +19270,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Heading
-
+ Optional column heading.
-
+ ObjectObject
@@ -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.
+ ObjectObject
@@ -20330,9 +19294,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the row.
-
+ NoneHair
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ NoneSingle
@@ -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).
-
+ NoneBaseline
@@ -20450,9 +19414,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -20462,9 +19426,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -20474,9 +19438,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -20486,9 +19450,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - "Solid" by default.
-
+ NoneSolid
@@ -20519,9 +19483,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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".
-
+ GeneralLeft
@@ -20564,9 +19528,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ TopCenter
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ SingleSingle
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ StringString
@@ -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.
-
+ ExcelWorksheetExcelWorksheet
@@ -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.
-
+ ObjectObject
@@ -20713,9 +19677,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
StartRow
-
+ First row to fill data in.
-
+ Int32Int32
@@ -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.
-
+ ObjectObject
@@ -20737,9 +19701,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Heading
-
+ Optional column heading.
-
+ ObjectObject
@@ -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.
+ ObjectObject
@@ -20761,9 +19725,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the row.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -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.
-
+ ObjectObject
@@ -20785,9 +19749,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Bold
-
+ Make text bold; use -Bold:$false to remove bold.
-
+ SwitchParameterSwitchParameter
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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".
-
+ ExcelUnderLineTypeExcelUnderLineType
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -20845,9 +19809,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontShift
-
+ Subscript or Superscript (or None).
-
+ ExcelVerticalAlignmentFontExcelVerticalAlignmentFont
@@ -20857,9 +19821,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -20869,9 +19833,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -20881,9 +19845,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -20893,9 +19857,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - "Solid" by default.
-
+ ExcelFillStyleExcelFillStyle
@@ -20905,9 +19869,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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".
-
+ ExcelHorizontalAlignmentExcelHorizontalAlignment
@@ -20941,9 +19905,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ ExcelVerticalAlignmentExcelVerticalAlignment
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SingleSingle
@@ -20989,9 +19953,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
AutoNameRange
-
+ Set the inserted data to be a named range.
-
+ SwitchParameterSwitchParameter
@@ -21001,9 +19965,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Hide
-
+ Hide the column.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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-ExcelRangeRange
-
+ One or more row(s), Column(s) and/or block(s) of cells to format.
-
+ ObjectObject
@@ -21131,9 +20100,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
WorkSheet
-
+ The worksheet where the format is to be applied.
-
+ ExcelWorksheetExcelWorksheet
@@ -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.
+ ObjectObject
@@ -21155,9 +20124,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the range.
-
+ NoneHair
@@ -21182,9 +20151,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderColor
-
+ Color of the border.
-
+ ObjectObject
@@ -21194,9 +20163,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderBottom
-
+ Style for the bottom border.
-
+ NoneHair
@@ -21221,9 +20190,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderTop
-
+ Style for the top border.
-
+ NoneHair
@@ -21248,9 +20217,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderLeft
-
+ Style for the left border.
-
+ NoneHair
@@ -21275,9 +20244,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderRight
-
+ Style for the right border.
-
+ NoneHair
@@ -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.
-
+ ObjectObject
@@ -21314,9 +20283,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Value
-
+ Value for the cell.
-
+ ObjectObject
@@ -21326,9 +20295,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Formula
-
+ Formula for the cell.
-
+ ObjectObject
@@ -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".
-
+ NoneSingle
@@ -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).
-
+ NoneBaseline
@@ -21441,9 +20410,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -21453,9 +20422,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -21465,9 +20434,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -21477,9 +20446,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - Solid by default.
-
+ NoneSolid
@@ -21510,9 +20479,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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'.
-
+ GeneralLeft
@@ -21555,9 +20524,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ TopCenter
@@ -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.
-
+ Int32Int32
@@ -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.
-
+ SingleSingle
@@ -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).
+ SingleSingle
@@ -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.
-
+ ObjectObject
@@ -21669,9 +20638,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
WorkSheet
-
+ The worksheet where the format is to be applied.
-
+ ExcelWorksheetExcelWorksheet
@@ -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.
+ ObjectObject
@@ -21693,9 +20662,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the range.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -21705,9 +20674,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderColor
-
+ Color of the border.
-
+ ObjectObject
@@ -21717,9 +20686,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderBottom
-
+ Style for the bottom border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -21729,9 +20698,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderTop
-
+ Style for the top border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -21741,9 +20710,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderLeft
-
+ Style for the left border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -21753,9 +20722,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderRight
-
+ Style for the right border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -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.
-
+ ObjectObject
@@ -21777,9 +20746,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Value
-
+ Value for the cell.
-
+ ObjectObject
@@ -21789,9 +20758,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Formula
-
+ Formula for the cell.
-
+ ObjectObject
@@ -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).
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -21825,9 +20794,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Bold
-
+ Make text bold; use -Bold:$false to remove bold.
-
+ SwitchParameterSwitchParameter
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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".
-
+ ExcelUnderLineTypeExcelUnderLineType
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -21885,9 +20854,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontShift
-
+ Subscript or Superscript (or none).
-
+ ExcelVerticalAlignmentFontExcelVerticalAlignmentFont
@@ -21897,9 +20866,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -21909,9 +20878,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -21921,9 +20890,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -21933,9 +20902,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - Solid by default.
-
+ ExcelFillStyleExcelFillStyle
@@ -21945,9 +20914,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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'.
-
+ ExcelHorizontalAlignmentExcelHorizontalAlignment
@@ -21981,9 +20950,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ ExcelVerticalAlignmentExcelVerticalAlignment
@@ -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.
-
+ Int32Int32
@@ -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).
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SingleSingle
@@ -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).
+ SingleSingle
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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
-
+ SwitchParameterSwitchParameter
@@ -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-ExcelRowExcelPackage
-
+ An Excel package object - for example from Export-Excel -PassThru - if specified requires a sheet name to be passed a parameter.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ ObjectObject
@@ -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.
+ ObjectObject
@@ -22163,9 +21137,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
StartColumn
-
+ Position in the row to start from.
-
+ Int32Int32
@@ -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.
+ ObjectObject
@@ -22187,9 +21161,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Heading
-
+ Optional row-heading.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
+ ObjectObject
@@ -22234,9 +21208,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the row.
-
+ NoneHair
@@ -22261,9 +21235,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderColor
-
+ Color of the border.
-
+ ObjectObject
@@ -22273,9 +21247,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderBottom
-
+ Style for the bottom border.
-
+ NoneHair
@@ -22300,9 +21274,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderTop
-
+ Style for the top border.
-
+ NoneHair
@@ -22327,9 +21301,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderLeft
-
+ Style for the left border.
-
+ NoneHair
@@ -22354,9 +21328,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderRight
-
+ Style for the right border.
-
+ NoneHair
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ NoneSingle
@@ -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).
-
+ NoneBaseline
@@ -22474,9 +21448,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -22486,9 +21460,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -22498,9 +21472,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -22510,9 +21484,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - solid by default.
-
+ NoneSolid
@@ -22543,9 +21517,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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'.
-
+ GeneralLeft
@@ -22588,9 +21562,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ TopCenter
@@ -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.
-
+ Int32Int32
@@ -22619,9 +21593,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Height
-
+ Set cells to a fixed height.
-
+ SingleSingle
@@ -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-ExcelRowWorksheet
-
+ A worksheet object instead of passing a name and package.
-
+ ExcelWorksheetExcelWorksheet
@@ -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.
+ ObjectObject
@@ -22691,9 +21665,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
StartColumn
-
+ Position in the row to start from.
-
+ Int32Int32
@@ -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.
+ ObjectObject
@@ -22715,9 +21689,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Heading
-
+ Optional row-heading.
-
+ ObjectObject
@@ -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.
-
+ Int32Int32
@@ -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.
+ ObjectObject
@@ -22762,9 +21736,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the row.
-
+ NoneHair
@@ -22789,9 +21763,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderColor
-
+ Color of the border.
-
+ ObjectObject
@@ -22801,9 +21775,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderBottom
-
+ Style for the bottom border.
-
+ NoneHair
@@ -22828,9 +21802,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderTop
-
+ Style for the top border.
-
+ NoneHair
@@ -22855,9 +21829,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderLeft
-
+ Style for the left border.
-
+ NoneHair
@@ -22882,9 +21856,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderRight
-
+ Style for the right border.
-
+ NoneHair
@@ -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.
-
+ ObjectObject
@@ -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".
-
+ NoneSingle
@@ -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).
-
+ NoneBaseline
@@ -23002,9 +21976,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -23014,9 +21988,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -23026,9 +22000,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -23038,9 +22012,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - solid by default.
-
+ NoneSolid
@@ -23071,9 +22045,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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'.
-
+ GeneralLeft
@@ -23116,9 +22090,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ TopCenter
@@ -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.
-
+ Int32Int32
@@ -23147,9 +22121,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Height
-
+ Set cells to a fixed height.
-
+ SingleSingle
@@ -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.
-
+ ExcelPackageExcelPackage
@@ -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.
-
+ ObjectObject
@@ -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.
-
+ ExcelWorksheetExcelWorksheet
@@ -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.
+ ObjectObject
@@ -23243,9 +22217,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
StartColumn
-
+ Position in the row to start from.
-
+ Int32Int32
@@ -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.
+ ObjectObject
@@ -23267,9 +22241,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Heading
-
+ Optional row-heading.
-
+ ObjectObject
@@ -23279,9 +22253,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
HeadingBold
-
+ Set the heading in bold type.
-
+ SwitchParameterSwitchParameter
@@ -23291,9 +22265,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
HeadingSize
-
+ Change the font-size of the heading.
-
+ Int32Int32
@@ -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.
+ ObjectObject
@@ -23315,9 +22289,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderAround
-
+ Style of border to draw around the row.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -23327,9 +22301,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderColor
-
+ Color of the border.
-
+ ObjectObject
@@ -23339,9 +22313,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderBottom
-
+ Style for the bottom border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -23351,9 +22325,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderTop
-
+ Style for the top border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -23363,9 +22337,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderLeft
-
+ Style for the left border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -23375,9 +22349,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BorderRight
-
+ Style for the right border.
-
+ ExcelBorderStyleExcelBorderStyle
@@ -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.
-
+ ObjectObject
@@ -23399,9 +22373,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Bold
-
+ Make text bold; use -Bold:$false to remove bold.
-
+ SwitchParameterSwitchParameter
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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.
+ SwitchParameterSwitchParameter
@@ -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".
-
+ ExcelUnderLineTypeExcelUnderLineType
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -23459,9 +22433,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontShift
-
+ Subscript or Superscript (or none).
-
+ ExcelVerticalAlignmentFontExcelVerticalAlignmentFont
@@ -23471,9 +22445,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontName
-
+ Font to use - Excel defaults to Calibri.
-
+ StringString
@@ -23483,9 +22457,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
FontSize
-
+ Point size for the text.
-
+ SingleSingle
@@ -23495,9 +22469,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundColor
-
+ Change background color.
-
+ ObjectObject
@@ -23507,9 +22481,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
BackgroundPattern
-
+ Background pattern - solid by default.
-
+ ExcelFillStyleExcelFillStyle
@@ -23519,9 +22493,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
PatternColor
-
+ Secondary color for background pattern.
-
+ ObjectObject
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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'.
-
+ ExcelHorizontalAlignmentExcelHorizontalAlignment
@@ -23555,9 +22529,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
VerticalAlignment
-
+ Position cell contents to Top, Bottom or Center.
-
+ ExcelVerticalAlignmentExcelVerticalAlignment
@@ -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.
-
+ Int32Int32
@@ -23579,9 +22553,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Height
-
+ Set cells to a fixed height.
-
+ SingleSingle
@@ -23591,9 +22565,9 @@ PS\> Send-SQLDataToExcel -Session $DbSessions\["f1"\] -SQL $sql -Path ".\dem
Hide
-
+ Hide the row.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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.
-
+ SwitchParameterSwitchParameter
@@ -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/ImportExcelhttps://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"|\
+- ```powershell
+ ColumnName = @{
+ Function = "Average"\|"Count"\|"CountNums"\|"Max"\|"Min"\|"None"\|"StdDev"\|"Sum"\|"Var"|
+ Comment = $HoverComment
+ }
+ ```
+
+if specified, -ShowTotal is not needed.
```yaml
Type: Hashtable
diff --git a/mdHelp/en/export-excel.md b/mdHelp/en/export-excel.md
index 41baed50..57288796 100644
--- a/mdHelp/en/export-excel.md
+++ b/mdHelp/en/export-excel.md
@@ -16,13 +16,13 @@ Exports data to an Excel worksheet.
### Default \(Default\)
```text
-Export-Excel [[-Path] ] [-InputObject