LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default list box updating itself

what is a good way of removing a listbox selection from the list
i am using the following

private sub command button1 ()

dim selection

range("d4") = selection
range("a1").select

do until activecell.value = selection

activecell.offset(1,0).activate

loop

selection.entirerow.delete

end sub

as you can see i have set the control source of the listbox at d4
then i use that to find the row in the list and delete.

this works most of the time and the rows disapears off the list before
my eyes, however sometimes it stays there or freezes,

any hints or tips would be great, i am not sure if i should unload and
reload the form after i have deleted the row, so it resets the list.
i am really after abit of a better way of doing then i am at the moment

chris

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Updating List Nick Excel Worksheet Functions 0 December 20th 06 08:38 PM
Updating List selection on the fly Ninjapowa Excel Discussion (Misc queries) 0 September 20th 06 09:37 PM
Updating List amitwaze Excel Discussion (Misc queries) 1 July 26th 06 01:38 PM
Auto-updating top-list. Landanan Excel Discussion (Misc queries) 3 February 10th 06 05:22 AM
Updating a list [email protected] Excel Discussion (Misc queries) 1 February 17th 05 01:36 AM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"