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

Hi all i have a listbox that shows all that data enterd on a sheet1 the
listboxs just shows it but , i would like the listbox to go to that last
entery in the list , the list is long that way you dont have to sroll-down
the list to see what you just enterd .
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default listbox

Hi tbailey-

If you are familiar with VBA, try using somthing like:

Sheet1.ListBox1.ListIndex = Sheet1.ListBox1.ListCount - 1

John



"tbailey" wrote:

Hi all i have a listbox that shows all that data enterd on a sheet1 the
listboxs just shows it but , i would like the listbox to go to that last
entery in the list , the list is long that way you dont have to sroll-down
the list to see what you just enterd .

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

Yes i work with VBA the list box is on a userform.
that code it tryed it did not work. do i need to put this code in the
Initialize,
"redeagle" wrote:

Hi tbailey-

If you are familiar with VBA, try using somthing like:

Sheet1.ListBox1.ListIndex = Sheet1.ListBox1.ListCount - 1

John



"tbailey" wrote:

Hi all i have a listbox that shows all that data enterd on a sheet1 the
listboxs just shows it but , i would like the listbox to go to that last
entery in the list , the list is long that way you dont have to sroll-down
the list to see what you just enterd .

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

Hi tbailey-

If you are using a userform then replace "sheet1" with "Me" and "ListBox1"
with whatever the name of the listbox is on your form.

You should place this code after the code that adds an item to the list box.

John

"tbailey" wrote:

Yes i work with VBA the list box is on a userform.
that code it tryed it did not work. do i need to put this code in the
Initialize,
"redeagle" wrote:

Hi tbailey-

If you are familiar with VBA, try using somthing like:

Sheet1.ListBox1.ListIndex = Sheet1.ListBox1.ListCount - 1

John



"tbailey" wrote:

Hi all i have a listbox that shows all that data enterd on a sheet1 the
listboxs just shows it but , i would like the listbox to go to that last
entery in the list , the list is long that way you dont have to sroll-down
the list to see what you just enterd .

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

thank you for that part. now i just need it to stop at the first empty cell,
it go all the way to 65536

"redeagle" wrote:

Hi tbailey-

If you are using a userform then replace "sheet1" with "Me" and "ListBox1"
with whatever the name of the listbox is on your form.

You should place this code after the code that adds an item to the list box.

John

"tbailey" wrote:

Yes i work with VBA the list box is on a userform.
that code it tryed it did not work. do i need to put this code in the
Initialize,
"redeagle" wrote:

Hi tbailey-

If you are familiar with VBA, try using somthing like:

Sheet1.ListBox1.ListIndex = Sheet1.ListBox1.ListCount - 1

John



"tbailey" wrote:

Hi all i have a listbox that shows all that data enterd on a sheet1 the
listboxs just shows it but , i would like the listbox to go to that last
entery in the list , the list is long that way you dont have to sroll-down
the list to see what you just enterd .



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default listbox

Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select

"tbailey" wrote:

thank you for that part. now i just need it to stop at the first empty cell,
it go all the way to 65536

"redeagle" wrote:

Hi tbailey-

If you are using a userform then replace "sheet1" with "Me" and "ListBox1"
with whatever the name of the listbox is on your form.

You should place this code after the code that adds an item to the list box.

John

"tbailey" wrote:

Yes i work with VBA the list box is on a userform.
that code it tryed it did not work. do i need to put this code in the
Initialize,
"redeagle" wrote:

Hi tbailey-

If you are familiar with VBA, try using somthing like:

Sheet1.ListBox1.ListIndex = Sheet1.ListBox1.ListCount - 1

John



"tbailey" wrote:

Hi all i have a listbox that shows all that data enterd on a sheet1 the
listboxs just shows it but , i would like the listbox to go to that last
entery in the list , the list is long that way you dont have to sroll-down
the list to see what you just enterd .

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
userform listbox cannot get listbox.value to transfer back to main sub [email protected] Excel Programming 1 May 17th 06 09:44 PM
avoiding duplicates in listbox (added from another listbox) KR Excel Programming 4 March 14th 06 08:17 PM
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) modjoe23 Excel Programming 3 August 18th 05 02:35 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM


All times are GMT +1. The time now is 02:46 AM.

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"