What is the difference between =Empty and IsEmpty() in VBA (Excel)?

前端 未结 3 1029
长发绾君心
长发绾君心 2020-12-01 12:17

I have used the following VBA code:

Do While .Cell(i,1) <> Empty
  \' doing things
  i = i+1
Loop

to iterate through columns (with Do

3条回答
  •  囚心锁ツ
    2020-12-01 12:36

    I believe IsEmpty is just method that takes return value of Cell and checks if its Empty so: IsEmpty(.Cell(i,1)) does ->

    return .Cell(i,1) <> Empty
    

提交回复
热议问题