Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
listbox not updating
hello,
i am new to this site but i need some help. i have a userform with a listbox on it. the list box has 20 columns and upto 200 rows. i populate the list box via the row source property. i want to click on a row within the list and delete it. i can do this as i find the row i am on by setting a variable to the list control source which i have set elseware on another worksheet. i have this code assigned to a command button on the form sub deleterow () dim rgstack as range clears = worksheets("sheet2").Range("a1") Set rgstack = worksheets("sheet1").Range("a1:a2000").Find(what:= clears) rgstack.EntireRow.Delete Shift:=xlUp end sub now here is the real problem, this code works fine on xl2000 but on xl97 it works once then the second time the row does not disapear. is it a code compatibility issue or is there a better way of updating a list when deleting a row regards tammy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
listbox B conditional of input in Listbox A | Excel Discussion (Misc queries) | |||
Multicolumn Listbox and ordinary listbox | Excel Programming | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming | |||
Is refreshing listbox rowsource in listbox click event possible? | Excel Programming | |||
Sorting ListBox results or transposing ListBox values to other cells for sorting | Excel Programming |