Vincent88
Active Member
- Joined
- Mar 5, 2021
- Messages
- 382
- Office Version
- 2019
- Platform
- Windows
- Mobile
Hi Guys,
I am using this code to find the last row in a dynamic range lastRow = Range("A3").End(xlDown).Row but it's really not what I prefer If my current dynamic range is for example from A3 to A14 to AL rows. If I enter something in let say in cell A17, the last row will becom A17.
How to rewrite the code to really reflect the true last row of the current dynamic range ?
I am using this code to find the last row in a dynamic range lastRow = Range("A3").End(xlDown).Row but it's really not what I prefer If my current dynamic range is for example from A3 to A14 to AL rows. If I enter something in let say in cell A17, the last row will becom A17.
How to rewrite the code to really reflect the true last row of the current dynamic range ?