Dim xlPackage As ExcelPackage = New ExcelPackage(New IO.FileInfo("C:\Users\jtang20\Desktop\test.xlsx"))Dim sheet As ExcelWorksheet = xlPackage.Workbook.Worksheets("Sheet1")

If sheet.cells("H9").value Is Nothing Then

    console.WriteLine("False 1")

Else

    console.WriteLine("True")

End If

xlPackage.Dispose()

 

开始是想写 If sheet.cells("H9").value.tostring = "" , 但是会报错,所以要写  If sheet.cells("H9").value Is Nothing

 

Uipath Invoke Code 判断某单元格为空

 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2021-10-25
  • 2022-12-23
  • 2021-12-09
  • 2021-11-22
  • 2022-12-23
  • 2021-09-27
  • 2021-11-05
相关资源
相似解决方案