Hi,
I am trying to develop a function to verify if the selected range is square, without passing any argument, but I am not being capable of counting the number of rows and columns.
Function xlM_IsSquare()
addrss = Application.Caller.Address
m = addrss.Rows.Count
xlM_IsSquare = m
End Function
Regards
António Teixeira
I am trying to develop a function to verify if the selected range is square, without passing any argument, but I am not being capable of counting the number of rows and columns.
Function xlM_IsSquare()
addrss = Application.Caller.Address
m = addrss.Rows.Count
xlM_IsSquare = m
End Function
Regards
António Teixeira