Hi.
I have been looking into this for a bit, but i simply cannot seem to make sense of this issue.
I am using the following piece of code, to find the next empty row. This is used to enter data from a userform.
Sometimes it will work properly, other times it will select row 5010. The spreadsheet has empty but formatted cells down to 4997, so it's really odd to me that it's 5010 specifically, and not 4998 as an example.
It's a fairly new sheet, so there's only data in row 3-19, plus the headers.
If i close the sheet and VBA editor (builtin), i works fine for a few entries, before it gives up again, and gives me row 5010.
Row 5010 is locked, so trying to enter data into it, will give me an error 1004.
Any ideas what
I have been looking into this for a bit, but i simply cannot seem to make sense of this issue.
I am using the following piece of code, to find the next empty row. This is used to enter data from a userform.
VBA Code:
emptyRow = Cells(Rows.Count, "C").End(xlUp).Offset(1).Row
Sometimes it will work properly, other times it will select row 5010. The spreadsheet has empty but formatted cells down to 4997, so it's really odd to me that it's 5010 specifically, and not 4998 as an example.
It's a fairly new sheet, so there's only data in row 3-19, plus the headers.
If i close the sheet and VBA editor (builtin), i works fine for a few entries, before it gives up again, and gives me row 5010.
Row 5010 is locked, so trying to enter data into it, will give me an error 1004.
Any ideas what