-
|
So I found this in the repo: mdHelp/en/add-exceltable.md |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
hmm, I don't believe so. I also don't think there is a PS function to do it. (not 💯 on this, that was a long time ago) You'd have to get access to the object model either |
Beta Was this translation helpful? Give feedback.
-
|
can you post a simplei repro of what you want to do? sample data, export to excel. then post a second xlsx with the same data and the style apply that you prefer. |
Beta Was this translation helpful? Give feedback.
@dfinke ... first, thanks for being prompt in your replies
basically I'm looking to doing stuff like this:
Get-Process | Export-Excel -TableStyle Medium15as I understand it (reading the .md that I linked in the OP) if I leave off the
-TableStyle Medium15it will default to the Medium6 table style (right?) and my hope would be that I could change that default so I could leave off the-TableStyle Medium15every time I do anExport-Exceland I thought that maybe an alias in my PS profile.ps1 would be the way to go
but from testing and researching it appears that's not the way to do this and the proper way is the following:
$PSDefaultParameterValues['Export-Excel:TableStyle'] = "Medium15"an…