Hugo huijer
Member
Hi Chandoo,
I have a pretty specific issue, which I can't work out cause I'm still pretty new to VB. I have attached my sheet for reference.
I have set up 3 user forms. One for entering regular data in a sheet, one for building a budget in a sheet, and another one for building a variation budget for a sheet. The last 2 are pretty much alike, as they do mostly the same. They enter data in rows, and with each new data input a new row should be created for that data. For the first of these forms I got it to work. The code inserts a new row every time data gets inputted, and this data is filled in this row.
I want the 3rd userform to do the same, but here lies my issue. The 2nd user form has a fixed starting point, so it's easy to let the code insert a row in the proper place. The 3rd user form doesn't have this, as the cells move whenever data is entered in the 2nd form. This is why the code of the 3rd form needs something that lets it insert a row in the right spot.
How should I code this, and can you help me with this issue?
I'm not English so this explanation might be vague. I hope you understand it. Feel free to ask more questions!
I have a pretty specific issue, which I can't work out cause I'm still pretty new to VB. I have attached my sheet for reference.
I have set up 3 user forms. One for entering regular data in a sheet, one for building a budget in a sheet, and another one for building a variation budget for a sheet. The last 2 are pretty much alike, as they do mostly the same. They enter data in rows, and with each new data input a new row should be created for that data. For the first of these forms I got it to work. The code inserts a new row every time data gets inputted, and this data is filled in this row.
I want the 3rd userform to do the same, but here lies my issue. The 2nd user form has a fixed starting point, so it's easy to let the code insert a row in the proper place. The 3rd user form doesn't have this, as the cells move whenever data is entered in the 2nd form. This is why the code of the 3rd form needs something that lets it insert a row in the right spot.
How should I code this, and can you help me with this issue?
I'm not English so this explanation might be vague. I hope you understand it. Feel free to ask more questions!