Comments (4)
[pscustomobject]$assetdata | export-excel ...
from importexcel.
The problem is you're piping a hashtable, instead of a list of hashtables. So it's enumerating on the properties of the hash itself
try this
$data = @(
[pscustomobject]@{ Name = 'bob' }
[pscustomobject]@{ Name = 'jen' }
) | Export-Excel -Show -TableName 'employees' -TableStyle Light2
Or just using a PSCO like the comment above works even, even a single item
[pscustomobject]@{ name = 'jen' } | Export-Excel
from importexcel.
Yep, both work. Learning new things sure makes a man feel stupid sometimes.
from importexcel.
You're learning how PowerShell works. Takes time. Good news, this will help you in all your PowerShell efforts.
from importexcel.
Related Issues (20)
- Formula in NoteProperty exported using Export-Excel is broken with #REF! HOT 1
- Pipeline input accepted without a process block
- NumberFormat Dates HOT 4
- PivotTable and Table Filters HOT 4
- "Header" parameter HOT 1
- Import-Excel reads null values with PowerShell 7.4.0 HOT 5
- import-excel cannot read excel formatted xml HOT 1
- Issue with empty values in generated Excel. HOT 1
- Issue with user-defined number format HOT 5
- Export-Excel's -CellStyleSB switch doesn't seem to parse dimensions.address correctly for use with Set-CellStyle HOT 2
- Can't get 'Close-ExcelPackage' to work properly HOT 5
- Exporting with default theme now renders as purple after recent office update? HOT 11
- New-ConditionalText Question HOT 1
- Exporting worksheet to csv while keeping excel formats (where applicable) HOT 9
- Set-ExcelRange -Formula issue HOT 1
- KillExcel fails
- Feature Request: Set the default worksheet when the workbook is opened HOT 3
- Close-ExcelPackage -Show broken on MacOS due to PowerShell issue HOT 1
- Add -Calculate to Open-ExcelPackage and Import-Excel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from importexcel.