mohitkumar966
New Member
- Joined
- May 29, 2018
- Messages
- 6
Hi All,
I am trying to get the last row count in excel using vba using the below code:
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
but it is not giving me the required result. I am getting 1 as output. even though I checked manually that data is there and Ctrl+Shift+End is also taking me to the last cell of the data.
Thanks in advance.
I am trying to get the last row count in excel using vba using the below code:
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
but it is not giving me the required result. I am getting 1 as output. even though I checked manually that data is there and Ctrl+Shift+End is also taking me to the last cell of the data.
Thanks in advance.