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: 2
Default UserForms:listbox display problems

I've written a Macro with an outer and inner loop to process 1 or more days
of data. Each day contains many lines which come from two sources and are
handled by the inner loop. The first listbox allows the user to choose which
day to process; the second box allows the user to select which source to
access. THE PROBLEM: the first box always works, but the second box either
does not initialize, and/or flashes on the screen very briefly and does not
allow user to make a selection. My investigation reveals that the listindex
for the second box has either the listindex of the first listbox or a
completely random number. The list boxes are populated by "reading" the
contents of a folder on the C drive and listing them. Here's the line of
code from the on_click event procedu
UserSelect = Listbox1.list(listbox1.listindex)
I always load then unload this second box, but hide the first. Why is this
happening and is there a workaround?

 
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
problems with userforms [email protected] Excel Programming 0 February 12th 05 10:52 PM
Multicolumn ListBox in Userforms (selecting specific rows) wpllc2004 Excel Programming 1 April 6th 04 08:45 PM
Moving cell values from sheet2 to sheet1 using UserForms and ListBox Stein Kristiansen Excel Programming 0 November 20th 03 07:13 AM
Userforms - listbox question Stuart[_5_] Excel Programming 3 September 2nd 03 12:40 PM
Problems designing userforms Mike NG Excel Programming 5 July 24th 03 02:19 PM


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