Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default in Me.lbx.MultiSelect = fmMultiSelectMulti

that case,,, the line have 50,000 data..
i want to select the all data...
but, lbx.selected(i)=true....... is no good... this is slow... for
loop..
at once,one stop,,,, setting

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default in Me.lbx.MultiSelect = fmMultiSelectMulti

You don't say a lot about what you are doing, but this might be a way to do it

Dim lRow as long
dim myRange as range

Set myRange = activesheet.cells(1,1) 'First cell of range to select
lRow = activesheet.cells(activesheet.rows.count,myrange.c olumn).end(xlup).row

if lRow myRange.row then
Set myRange = myRange.resize(lrow-myrange.row + 1,1)
end if

myRange.select

--
HTH,
Barb Reinhardt



"x taol" wrote:

that case,,, the line have 50,000 data..
i want to select the all data...
but, lbx.selected(i)=true....... is no good... this is slow... for
loop..
at once,one stop,,,, setting

*** Sent via Developersdex http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default in Me.lbx.MultiSelect = fmMultiSelectMulti


It is a listbox on the userform.....
in that listbox control......


*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default in Me.lbx.MultiSelect = fmMultiSelectMulti

Please review this site, then try again.

http://home.satx.rr.com/badour/html/post.html

"x taol" wrote:

that case,,, the line have 50,000 data..
i want to select the all data...
but, lbx.selected(i)=true....... is no good... this is slow... for
loop..
at once,one stop,,,, setting

*** Sent via Developersdex http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default in Me.lbx.MultiSelect = fmMultiSelectMulti

yes, I explain....
I have a userform.
the userform has a listbox.
a property the listbox is set following below.
lbx.MultiSelect = fmMultiSelectMulti
when the listbox have 10000 data, the problem has.
when the 10000 data is selected... the slow...
and then press a commandbutton on the form, the event occur.
I want to select all data of listbox, fastly.

*** Sent via Developersdex http://www.developersdex.com ***


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 245
Default in Me.lbx.MultiSelect = fmMultiSelectMulti

Try this worked very quickly @ 6000 + rows

Option Explicit

Private Sub CommandButton1_Click()
With Me.ListBox1
.RowSource = "A1:F65536" <--- change for your needs
End With
End Sub


Private Sub UserForm_Initialize()
With Me.ListBox1
.ColumnCount = 6< --- change for your needs
End With
End Sub


"x taol" wrote:

yes, I explain....
I have a userform.
the userform has a listbox.
a property the listbox is set following below.
lbx.MultiSelect = fmMultiSelectMulti
when the listbox have 10000 data, the problem has.
when the 10000 data is selected... the slow...
and then press a commandbutton on the form, the event occur.
I want to select all data of listbox, fastly.

*** Sent via Developersdex http://www.developersdex.com ***

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
Multiselect Listbox use RKS Excel Discussion (Misc queries) 1 May 12th 06 03:04 PM
multiselect remove King[_5_] Excel Programming 3 November 4th 05 09:00 PM
Multiselect list box ptaylor[_2_] Excel Programming 5 January 28th 05 05:35 PM
MultiSelect ListBox StephanieH Excel Programming 5 November 20th 04 12:29 AM
Multiselect Listbox Francis Ang[_3_] Excel Programming 2 October 25th 04 01:57 AM


All times are GMT +1. The time now is 03:13 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"