I've been searching on the internet trying to find what the meaning of listcount -1 is, but i can't seem to find the exact answer.
why is there -1 beside the listcount? or .list(.listcount -1,1) what is that mean?
edit
example of the listcount
.additem a.value
.list(.listcount -1, 1) = ws.cells(A,B).value
this adds the value of ws.cells(A,B) to the listbox1 but i don't understand why/how?
or i found a code on the internet http://www.ozgrid.com/VBA/multi-select-listbox.htm
i understand that the purpose of the code is "if one of the list is selected, then transfer the value of listbox into cells" but why is there .Listbox1.Listcount -1?