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: 21
Default When first displaying a sheet -List box is not filled in.

I have a listbox on a worksheet -a "splash sheet" which is activated in the
workbook_open event. I want to display a list of worksheets from which a
user can choose. It does not work as expected -it's blank at first. Details
& code below.

=details===========
The listbox is named "lstDashboards".
The splash sheet is named "Main Page"
Running Excel version 9.0.8961 SP-3 Windows 2000 version 5.00.2195 SP-4

In the workbook_open sub, I activate main page before I turn screenupdating
off. See below.

In main page's worksheet_activate event, I clear and load lstDashboards. I
load the list box with a set of worksheets that meet certain criteria so that
the user can select from this list and be taken directly to a sheet displayed
on the list.

I open the workbook by double clicking on it in windows explorer.

=what I see=================
The splash sheet displays, the old list is cleared.

About 20 secs go by while other stuff is being setup. The mouse icon turns
into a sand-timer.

The sand-timer turns back into a pointer.

The list is not updated. It is blank. If I select another sheet by it's
tab, and then select main page again, the list is appropriately updated.

I don't know why it doesn't work on the workbook_open event.

Any suggestions?


=code=============
Thisworkbook code:
Private Sub Workbook_Open()
Application.ActiveWorkbook.Sheets(1).Activate
Application.ScreenUpdating = False
 
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
Displaying items from a column list in another sheet? pieman3 Excel Worksheet Functions 18 April 7th 09 03:03 PM
How can I make Excel add an empty row every filled one in a list . Diego C. Excel Worksheet Functions 3 March 6th 08 11:08 PM
How to use Drop down list to reflect a set of fields to be filled? Eve Excel Worksheet Functions 2 October 5th 07 09:39 PM
List Box in User Form filled by Range Jez Excel Programming 0 May 11th 07 05:03 PM
Displaying series list from each chart sheet in workbook Barb Reinhardt Excel Programming 5 May 31st 06 05:36 PM


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