Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Header" parameter #1539

Open
SarSerg opened this issue Nov 13, 2023 · 1 comment
Open

"Header" parameter #1539

SarSerg opened this issue Nov 13, 2023 · 1 comment

Comments

@SarSerg
Copy link

SarSerg commented Nov 13, 2023

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

@dfinke
Copy link
Owner

dfinke commented Nov 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants