Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Clear listbox

Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Clear listbox

Userform1.Listbox.Clear

--
__________________________________
HTH

Bob

"johnrb7865" wrote in message
...
Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Clear listbox

Me.ListBox1.Clear

"johnrb7865" wrote:

Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Clear listbox

Thanks Bob, that worked.

"Bob Phillips" wrote:

Userform1.Listbox.Clear

--
__________________________________
HTH

Bob

"johnrb7865" wrote in message
...
Is there a way to clear the contents of a listbox when pushing the command
button to add the listbox contents to Excel?

Thanks,
John




Reply
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
Clear Method not working for a ListBox clear scott56hannah Excel Programming 4 February 14th 08 08:42 PM
Clear Cell using Listbox cluck Excel Programming 0 April 28th 06 07:45 PM
Fast way to clear Listbox selection [email protected] Excel Programming 4 August 26th 05 10:09 PM
How to Clear value a listbox! bookworm98[_6_] Excel Programming 5 January 27th 04 04:38 AM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM


All times are GMT +1. The time now is 01:04 AM.

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

About Us

"It's about Microsoft Excel"