VBA Stops Running When it Reaches a Blank Cell
Closed
Fenrir91_9
Posts
4
Registration date
Tuesday February 26, 2019
Status
Member
Last seen
October 10, 2019
-
Oct 10, 2019 at 10:00 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 15, 2019 at 12:14 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Oct 15, 2019 at 12:14 PM
Related:
- Blank vba
- Vba case like - Guide
- Number to words in excel formula without vba - Guide
- Vba check if value is in array - Guide
- Vba color index - Guide
- How to open vba in excel - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Updated on Oct 15, 2019 at 12:14 PM
Updated on Oct 15, 2019 at 12:14 PM
Hi Fenrir,
That is because the way you determine your "last" row.
Instead of using:
Use:
Best regards,
Trowa
That is because the way you determine your "last" row.
Instead of using:
Range("J1").End(xlDown)
Use:
Range("J" & rows.count).End(xlUp)
Best regards,
Trowa