Hi,
i have 9 buttons on the User form. There are actually 9 lines of objects:
txtPart1, txtQty1, txtUnit1, txtTotal1 and btnDelete1
txtPart2, txtQty2, txtUnit2, txtTotal2 and btnDelete2
txtPart3, txtQty3, txtUnit3, txtTotal3 and btnDelete3
txtPart4, txtQty4, txtUnit4, txtTotal4 and btnDelete4
...
...
txtPart9, txtQty9, txtUnit9, txtTotal9 and btnDelete9
where all objects with leading "txt" are textboxes, and btnDelete(i) are command buttons.
My question is if it is possible to make one sub for btnDelete(i)_click that depending on which commandbutton was clicked, change properties of those textboxes in the same line. Or just need to make 9 subs for each command button?
My code for one button is:
And what, the same code I should repeat for each button? There should be some other way..Please Login or Register to view this content.
Pleeeease help me out with that..
Bookmarks