ActiveSheet.UsedRange.Columns.Count - 8 what does it mean?

后端 未结 5 2101
孤独总比滥情好
孤独总比滥情好 2020-12-28 09:14

what does ActiveSheet.UsedRange.Columns.Count - 8 mean in vba?

How does vba know the usedRange?

5条回答
  •  不知归路
    2020-12-28 10:11

    Seems like you want to move around. Try this:

    ActiveSheet.UsedRange.select
    

    results in....

    enter image description here

    If you want to move that selection 3 rows up then try this

    ActiveSheet.UsedRange.offset(-3).select
    

    does this...

    enter image description here

提交回复
热议问题