powershell Call method with optional arguments

后端 未结 2 1144
再見小時候
再見小時候 2020-12-06 19:59

I have an excel vba code that finds a particular cell in a sheet. It uses the Find method form the excel libraries. Here is the code

objRange.Fi         


        
2条回答
  •  自闭症患者
    2020-12-06 20:57

    $null doesn't work, but according to this answer you can use [Type]::Missing:

    $default = [Type]::Missing
    $xl.Cells.Find("*", $default, $default, $default, $xlByRows, $xlPrevious,
                   $default, $default, $default)
    

提交回复
热议问题