Excel Fully Qualifying Range (Cells(),Cells())

前端 未结 1 1713
自闭症患者
自闭症患者 2020-12-06 21:40

I know many people have talked about fully qualifying ranges. I just want to know how deep you need to go with it to avoid problems.

In the example, I have qualified

相关标签:
1条回答
  • 2020-12-06 22:36

    Method A will only work if you myWS is active at the time of being called. Method B is more robust, as are method C:

    myWS.Range(Cells(1,5).Address, Cells(500,20).Address).ClearContents 
    

    or method D:

    myWS.Range("E1:T500")
    
    0 讨论(0)
提交回复
热议问题