To extend Rory's answer a bit: try the following code in an empty sheet:
Sub test()
Dim rng As Range, rarea As Range
Dim maxrow As Long, maxcol As Long, minrow As Long, mincol As Long
'Set rng = Range("A1:C10")
minrow = ActiveSheet.Rows.Count
mincol = ActiveSheet.Columns.Count
Set rng = Range("B3:E10,D5:G12,C5:D14,E3:F6")
For Each rarea In rng.Areas
rarea.Select
maxrow = WorksheetFunction.Max(maxrow, rarea.Row + rarea.Rows.Count - 1)
maxcol = WorksheetFunction.Max(maxcol, rarea.Column + rarea.Columns.Count - 1)
minrow = WorksheetFunction.Min(minrow, rarea.Row)
mincol = WorksheetFunction.Min(mincol, rarea.Column)
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = rarea.Address(False, False)
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = "rows: " & rarea.Row & ":" & rarea.Row + rarea.Rows.Count - 1
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = "columns: " & rarea.Column & ":" & rarea.Column + rarea.Columns.Count - 1
DoEvents
Application.Wait Now + TimeValue("0:00:01")
Next rarea
MsgBox "rows: " & minrow & ":" & maxrow & vbCrLf & "columns: " & mincol & ":" & maxcol
End Sub
And now you can drop all the displaying-related parts of the code and use it for your somerange
Bookmarks