Sub test()
Dim rng As Range
Set rng = [A1:A10]
MsgBox GetTypeRange(rng)
'-----------------------------------------
Set rng = [A1:A10]
MsgBox GetTypeRange(rng, rng.Rows)
Set rng = [A1:A10]
MsgBox GetTypeRange(rng, rng.Columns)
'-----------------------------------------
Set rng = [A1:J1]
MsgBox GetTypeRange(rng, rng.Rows)
Set rng = [A1:J1]
MsgBox GetTypeRange(rng, rng.Columns)
'-----------------------------------------
Set rng = [A1:J10]
MsgBox GetTypeRange(rng, rng.Rows)
Set rng = [A1:J10]
MsgBox GetTypeRange(rng, rng.Columns)
End Sub
Function GetTypeRange(rng As Range, Optional Rowcolumns As Range)
Dim X As Long
If Rowcolumns Is Nothing Then GetTypeRange = "Range": Exit Function
X = Abs(Rowcolumns(1).Address = Rowcolumns.Rows(1).Address)
GetTypeRange = Array("column", "Row", "Range")(X)
End Function