我认为Areas收藏是你正在寻找的.以下是选择的两个非连续范围的示例:
Sub testing()
'testing area
Range("A1:A10,E1:E10").Select
Dim rngFirst As Range
Dim rngSecond As Range
Set rngFirst = Selection.Areas(1)
rngFirst.Select
'if there is no other separate range within selection to avoid errors
'which could solved possible problems this way
On Error Resume Next
Set rngSecond = Selection.Areas(2)
rngSecond.Select
End Sub
Run Code Online (Sandbox Code Playgroud)