New version of this module will be developed under PSWriteOffice project. This module will no longer be developed! It has been replaced by PSWriteOffice project which will be a combination of Word, Excel and in future PowerPoint features. No new features, fixes will be added, but it will continue to work.
PSWriteExcel is very basic (at the moment) PowerShell module to create Microsoft Excel workbooks without Microsoft Excel installed. Its main purpose is to support/create Excel for PSWinDocumentation project. Depending on requirements of this project (and maybe few others) it may evolve or cover more feature sets. After some basic testing, it seems to work fine on Windows and Linux and MacOS.
More information can be found on a dedicated page for PSWriteExcel module.
New-ExcelDocument
, Add-ExcelWorkSheet
, Add-ExcelWorksheetData
and finally Save-ExcelDocument
$Object | ConvertTo-Excel -Path 'Export.xlsx' -WorkSheetName 'MyName'
There are couple of more commands in play that may come useful. Feel free to explore.
0.1.14 - 2022.15.16
0.1.13 - 2022.15.16
0.1.12 - 2020.11.21
Excel
cmdlet from working0.1.11 - 2020.09.24
Set-ExcelWorkSheetCellStyle
is now usable, it wasn't even half working before.0.1.10 - 2020.07.31
0.1.9 - 2020.07.30
0.1.8 - 2020.06.21
0.1.7 - 2020.06.21
0.1.6 - 2020.06.10
Request-ExcelWorkSheetCalculation
Add-ExcelWorkSheetCell
Transpose
in ConvertTo-Excel
0.1.5 - 2020.01.17
Excelimo
back into PSWriteExcel
PSWriteExcel
- requires additional modules only for development like all my other modules0.1.2 - 23.06.2019
0.1.0 - 17.04.2019
0.0.17 - 22.03.2019
0.0.16 - 15.02.2019
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh
For anything else refer to the great Microsoft Article - Installing PowerShell Core on Linux
Install-Module PSWriteExcel -Scope CurrentUser
#Update-Module PSWriteExcel
Get-Process | ConvertTo-Excel -Path 'ThisIsMyExcel.xlsx' -WorkSheetName 'AndWorksheet' -AutoFilter
This module is based on EPPlus and it's doing all the magic behind this project. PSWriteExcel is merely a wrapper around that with few PowerShell tricks around converting objects into tables.