Hi RoyUK,
thanks for your support.
Your code works fine but when I try to implement it for my needs I still have something to tweak.
I set the Userform Initialize Sub like this:
And the InsertData Sub like this:
Even though I set the columns to 5 I can see only 4 data per listbox row.
At first I set the first .Listbox.List(ref - 1,1) = ListBox.ListCount + 1 but then I noticed the Sub already add the line num with the ref variable in .ListBox.AddItem
In brief, what I get now is that I can't see displayed the amount calculated in the last ListBox.List row.
Furthermore the 1st column of the ListBox is way larger than I want it to be, so the others..somehow it happens the .ColumnWidths property is not read correctly, isn't it?
Last thing: is there a way to temporarily 'disable' the Subs invoked with Change on Hours and HourPay when I clear all the textboxes at the end of the InsertData_Click Sub? How can I change those Subs?
thanks again for your help,
P.
Bookmarks