mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 13:23:29 +00:00
Allow xlsm files to be read
This commit is contained in:
@@ -238,7 +238,7 @@ Function Import-Excel {
|
|||||||
Param (
|
Param (
|
||||||
[Alias('FullName')]
|
[Alias('FullName')]
|
||||||
[Parameter(ValueFromPipelineByPropertyName, ValueFromPipeline, Position=0, Mandatory)]
|
[Parameter(ValueFromPipelineByPropertyName, ValueFromPipeline, Position=0, Mandatory)]
|
||||||
[ValidateScript({(Test-Path -Path $_ -PathType Leaf) -and ($_ -match '.xls$|.xlsx$')})]
|
[ValidateScript( {(Test-Path -Path $_ -PathType Leaf) -and ($_ -match '.xls$|.xlsx$|.xlsm$')})]
|
||||||
[String]$Path,
|
[String]$Path,
|
||||||
[Alias('Sheet')]
|
[Alias('Sheet')]
|
||||||
[Parameter(Position=1)]
|
[Parameter(Position=1)]
|
||||||
|
|||||||
Reference in New Issue
Block a user