dfinke / ImportExcel

PowerShell module to import/export Excel spreadsheets, without Excel

Home Page:https://www.powershellgallery.com/packages/ImportExcel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Header" parameter

SarSerg opened this issue · comments

I use ImportExcel in PowerShell.
I need to use "Header" paramenter, as specified in your help.

If I insert "Header = ,..." into the parameter array I get an error message like
"the parameter 'Header' is ambiguos. You can use -HeaderName or -StartRow"

If I insert "HeaderName = ...." , then I get an error message like "There's no any parameter with name '-HeaderName'"
I attach some pics, with error msg in Italian (but rather easy to be understood)

Screenshots.zip

How can I use "Header" parameter?
Thanks

Sergio

Header is a an array of strings:

$Header = "Field1","Field2","Field3"

Looks like you are passing in a string file the fields separated by commas.