Hello
Everything works fine for me except for the last column in the list box. What I want when I choose a specific item from the list box and update its data is to reset the balance calculation for the selected item from the list box based on the row that precedes it for the balance column.
Let's take an example of the second row in the list box. In the first picture, the item is selected
In the second picture, the value of the fifth column of the selected element is changed, then the control button is pressed to update . In the third picture, it is marked in red. The value in the last column of the selected element has not changed. The fourth picture is right value where the value is taken from the row that precedes it and the equation is in this form 1233 + 1233 -100 = 2366
Any row that is modified when calculating in the last column must take the value from the row that precedes for the last column and add to the value of the fourth column and subtract it from the fifth column of the selected element.
But if you choose the first row, then the fourth column will be subtracted from the fifth column in case the first row is updated in the List Box.
Last thing I want implemnt the whole codes for two sheets based on selected sheet from combobox
first when select item to update
second when updtating
third current wrong gives result
finally should be
also posted here
Updating the selected item from the listbox based on the last column of the row preceding
I hope the idea is clear
thanks
Everything works fine for me except for the last column in the list box. What I want when I choose a specific item from the list box and update its data is to reset the balance calculation for the selected item from the list box based on the row that precedes it for the balance column.
Let's take an example of the second row in the list box. In the first picture, the item is selected
In the second picture, the value of the fifth column of the selected element is changed, then the control button is pressed to update . In the third picture, it is marked in red. The value in the last column of the selected element has not changed. The fourth picture is right value where the value is taken from the row that precedes it and the equation is in this form 1233 + 1233 -100 = 2366
Any row that is modified when calculating in the last column must take the value from the row that precedes for the last column and add to the value of the fourth column and subtract it from the fifth column of the selected element.
But if you choose the first row, then the fourth column will be subtracted from the fifth column in case the first row is updated in the List Box.
Last thing I want implemnt the whole codes for two sheets based on selected sheet from combobox
first when select item to update
second when updtating
third current wrong gives result
finally should be
also posted here
Updating the selected item from the listbox based on the last column of the row preceding
I hope the idea is clear
thanks