Match/resize new range based on another sheets sel

2019-09-14 04:36发布

Is it possible to match the range size of sheet 2 with the selected range in sheet 1?

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-09-14 04:52

First select Sheet1 and then select some block of cells. After running this macro:

Sub MatchRange()
    Dim ady As String
    ady = Selection.Address
    Sheets("Sheet2").Select
    Range(ady).Select
End Sub

you will be on Sheet2 with the same block selected.

查看更多
登录 后发表回答