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: 1
Default Refreshing a userform/listbox


Good morning.

I almost have my problem with listboxes sorted out(see Transfering
between listboxes). The Add and Remove buttons are working perfectly.
The only problem remaining... at least until I try to get the
information from the userform to the worksheet... is that I have a
button which allows user to expand on the number of options.

For clearity, the listbox allows 12 options. 7 are predefined in the
listbox, 5 my be added by the user by pressing a button. This button
calls a new userform for the user to enter the additional options. The
problem is that when the user returns to the original userform, the
listbox has not updated for the new options. This was working properly
before when I had the RowSource for the listbox set as the range that I
wanted but now that I am populating the listbox using the
Userform_Initialize procedure, this is not working any more.

How can I force a refresh of my userform... or have it reinitialize?
Right now the code for the second userform is pretty simple... once
they have entered in the options they want, there is a command button
with the following code.

Private Sub BTNReturn_Click()

Options.hide
Selectoptions.show

End Sub

Any ideas?
Cheers,
dw


--
toocold
------------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...o&userid=31608
View this thread: http://www.excelforum.com/showthread...hreadid=529287

 
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 in UserForm Dale Fye Excel Discussion (Misc queries) 0 October 11th 07 09:40 PM
UserForm Listbox in VBC Marcia3641 Excel Discussion (Misc queries) 7 July 22nd 05 10:20 AM
UserForm with ListBox Otto Moehrbach[_6_] Excel Programming 4 December 5th 04 07:30 PM
UserForm ListBox Otto Moehrbach[_6_] Excel Programming 3 December 30th 03 06:22 PM
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 10: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"