Sub bordersTest()
Dim theRange As Range
theRange = Range(ActiveCell, ActiveCell.End(xlDown).End(xlToRight)).Select
End Sub
答案 0 :(得分:1)
您必须设置变量:
Sub bordersTest()
Dim theRange As Range
Set theRange = Range(ActiveCell, ActiveCell.End(xlDown).End(xlToRight))
theRange.Select
End Sub