I have a workbook that when a certain field is changed to a specific value a pop up form appears that needs to be filled in, when the form is submitted, the data entered is put into a table on the main worksheet.
There are currently 30 empty rows that can be populated, and up to now this has been more than enough, however over the last few days there have been a few entries that fill up all 30 rows and need more.
Currently my code looks for the next empty row, and then puts the data there using the following code:
the lines of code after this populate the row with the data.
My question is, how do I add or change the code to check if it has reached the 30th empty row in currently cell A143, if it has reached this row and it is populated, it will add a new row below to paste the data?
There are currently 30 empty rows that can be populated, and up to now this has been more than enough, however over the last few days there have been a few entries that fill up all 30 rows and need more.
Currently my code looks for the next empty row, and then puts the data there using the following code:
VBA Code:
Worksheets("VI Sheet").Range("A112").Select
'get next blank cell
While ActiveCell.Value <> ""
ActiveCell.Offset(1, 0).Range("A1").Select
Wend
'input results
the lines of code after this populate the row with the data.
My question is, how do I add or change the code to check if it has reached the 30th empty row in currently cell A143, if it has reached this row and it is populated, it will add a new row below to paste the data?