lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I understand the code below what what I do not really understand is End(xlUp).
I read that it is a Property of Range and it is of type of Range itself. It is used to change the direction of a cell. But what I do not understand, why xlUp passed between 2 () to me that suggest it is a function/method, not property.
Thank you.
I understand the code below what what I do not really understand is End(xlUp).
I read that it is a Property of Range and it is of type of Range itself. It is used to change the direction of a cell. But what I do not understand, why xlUp passed between 2 () to me that suggest it is a function/method, not property.
Thank you.
Code:
Sub abc()
Dim x As Double
x = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox x
End Sub