Hello,
I searched the forum but found no solution.
I am a new VBA user and I have never programmed before, but I built an invoicing program for myself, before that someone helped me edit the code correctly, maybe this time someone will enlighten me for the future.
I have an invoice file in which, when you click one of the buttons, windows pop up to complete subsequent sections of the invoice.
Unfortunately, at some point I realized that when I use the code to enter data into a cell, e.g. Range ("C5"), the data will always be entered into cell C5, but in the case of invoices, - with more positions, the cells move, but my inputboxes and all the rest of the boxes still stick data "rigidly". I missed it in a clever way as you can see, but unfortunately it let me down because in addition to the patting of the textures.
at the end, it copies all these data to the invoice database, and here's the problem, because ctrl + f will not find me things in the text fields
here is my code:
How can I make the data fall into cell C5, unless it moves down, then it has to enter the data, for example, to C6 or C15 there
I searched the forum but found no solution.
I am a new VBA user and I have never programmed before, but I built an invoicing program for myself, before that someone helped me edit the code correctly, maybe this time someone will enlighten me for the future.
I have an invoice file in which, when you click one of the buttons, windows pop up to complete subsequent sections of the invoice.
Unfortunately, at some point I realized that when I use the code to enter data into a cell, e.g. Range ("C5"), the data will always be entered into cell C5, but in the case of invoices, - with more positions, the cells move, but my inputboxes and all the rest of the boxes still stick data "rigidly". I missed it in a clever way as you can see, but unfortunately it let me down because in addition to the patting of the textures.
at the end, it copies all these data to the invoice database, and here's the problem, because ctrl + f will not find me things in the text fields
here is my code:
How can I make the data fall into cell C5, unless it moves down, then it has to enter the data, for example, to C6 or C15 there
Code: VBScript