Skip to content

Is it possible to get variable and where-object functions to work in import-excel? #1256

@evolutionxtinct

Description

@evolutionxtinct

Discussed in #1255

Originally posted by evolutionxtinct September 23, 2022
Hello, i'm trying to utilize the -WorksheetName parameter, and it doesn't seem to like utilizing a $variable and it doesn't allow me to utilize where-object to search for a name in a tab.

I use this functionality for terminations and things like that, but they utilize a excel file per year, but the tabs stay the same, sadly they put it in this format: "Year Term" so I can't just look for worksheetname "Term" I have to look for something that contains the word "Term" in the parameter. Is it possible to get this worked in as it would be huge for us, thanks!

It comes up w/ the following error:

Import-Excel does not support reading this extension type
At C:\Program Files\WindowsPowerShell\Modules\ImportExcel\7.8.1\Public\Import-Excel.ps1:111 char:21
throw "Import-Excel does not support reading this extensi ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : OperationStopped: (Import-Excel do...extension type :String) [], RuntimeException
FullyQualifiedErrorId : Import-Excel does not support reading this extension type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions