I have a listbox on an userform and it is populated from a range on a worksheet. I want to double click on selected item in my listbox to remove the item from the listbox and from the range.
Thanks
I have a listbox on an userform and it is populated from a range on a worksheet. I want to double click on selected item in my listbox to remove the item from the listbox and from the range.
Thanks
Last edited by jharaldson; 02-02-2013 at 08:44 PM.
hi,
You didn't attach any sample workbook so I will show You my idea.
Let's say your source for listbox1.list is in the range of sheet1 A1:A5.
List will be automaticaly load on userform initialize
2 procedures for userform
and it is what You need I think![]()
Please Login or Register to view this content.
Best Regards
MaczaQ
---------------------------------------------------------------------------------------------------------------------------
If you are satisfied with the solution(s) provided, please mark your thread as Solved
If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
- This way you will add him some reputation points ... thanks in advance.
Sorry MaczaQ,
Here is a sample book. I need it to delete the whole row.
Sorry old workbook, this one is updated.
I added this to your code,
and that clears the row but now I want it to show on the sheet right away, not when I close the form. Is that possible?![]()
Please Login or Register to view this content.
hi jharaklson,
Sorry I've changed a bit Your code, below You will find an update; old lines I hash.
For now that code get an array as listbox source from range (without any loop) and delete whole row when You will double click on listbox item
![]()
Please Login or Register to view this content.
thanks for your help macza!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks