Allow xlsm files to be read

This commit is contained in:
dfinke
2018-01-09 19:39:13 -05:00
parent 5969bba169
commit 2f70cd88e8

View File

@@ -238,7 +238,7 @@ Function Import-Excel {
Param (
[Alias('FullName')]
[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,
[Alias('Sheet')]
[Parameter(Position=1)]