Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default ListBox display bug

Hi,
I am using a listBox filled using ListFillRange.
However, when I open the spreadsheet, the LB appears as blank, I need to
scroll down and then up to refresh the display
Any trick to force the listbox to refresh its appearance?
Thanks
ben
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ListBox display bug


Hello Ben,

You can display any item in list by setting the ListIndex property.

EXAMPLE:

Shapes("Drop Down 11").ControlFormat.ListIndex = 1

This displays the first item in the list. The numbering begins at 1.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=487543

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default ListBox display bug

Ben:

add this code to Thisworkbook Module

'Thisworkbook
Private Sub Workbook_Open()
Sheet1.Shapes("Listbox1").DrawingObject.Object.Top Index = 0
End Sub


Control Toolbox Controls
--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Ben" wrote:

Hi,
I am using a listBox filled using ListFillRange.
However, when I open the spreadsheet, the LB appears as blank, I need to
scroll down and then up to refresh the display
Any trick to force the listbox to refresh its appearance?
Thanks
ben

  #4   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default ListBox display bug

This still doesn't make it. Will try to play around.
It has something to do with the screen not refreshing the display of the
listbox control.
Anyway to programmatically control the scrollbar on a listbox? (as clicking
on the control itself and scrolling down an up refresh the list)

Thanks guys

"chijanzen" wrote:

Ben:

add this code to Thisworkbook Module

'Thisworkbook
Private Sub Workbook_Open()
Sheet1.Shapes("Listbox1").DrawingObject.Object.Top Index = 0
End Sub


Control Toolbox Controls
--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Ben" wrote:

Hi,
I am using a listBox filled using ListFillRange.
However, when I open the spreadsheet, the LB appears as blank, I need to
scroll down and then up to refresh the display
Any trick to force the listbox to refresh its appearance?
Thanks
ben

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default ListBox display bug

Ben:

Use ListIndex property

Sheet1.ListBox1.ListIndex =2
--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Ben" wrote:

This still doesn't make it. Will try to play around.
It has something to do with the screen not refreshing the display of the
listbox control.
Anyway to programmatically control the scrollbar on a listbox? (as clicking
on the control itself and scrolling down an up refresh the list)

Thanks guys

"chijanzen" wrote:

Ben:

add this code to Thisworkbook Module

'Thisworkbook
Private Sub Workbook_Open()
Sheet1.Shapes("Listbox1").DrawingObject.Object.Top Index = 0
End Sub


Control Toolbox Controls
--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Ben" wrote:

Hi,
I am using a listBox filled using ListFillRange.
However, when I open the spreadsheet, the LB appears as blank, I need to
scroll down and then up to refresh the display
Any trick to force the listbox to refresh its appearance?
Thanks
ben



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
Listbox data display problem Henry[_8_] Excel Programming 7 November 11th 05 11:59 PM
display and change listbox data Oreg[_33_] Excel Programming 7 October 11th 05 02:00 AM
Display selections from a listbox in a message box Excel-erate2004[_35_] Excel Programming 2 September 6th 04 12:48 PM
Listbox Display Frank Kabel Excel Programming 1 April 1st 04 07:58 PM
Listbox Display Tom Ogilvy Excel Programming 0 April 1st 04 06:43 PM


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