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: 36
Default Maintaining selections in UserForm

My application consists of two workbooks. The first is my menu which
has one sheet with a button that when clicked opens a UserForm (UF3).
From this the user makes a selection from a ListBox (LB1), then makes
one selection from several different OptionButtons. The selected
OptionButton populates a second ListBox (LB2). The user makes a
selection from LB2 and finally clicks on a CommandButton (CB1) which
retrieves and opens the second workbook.

Private Sub CB1_Click()
Workbooks.Open "C:\Data\Library\Report.xls"
Sheets("report").Select
Range("A1").Select

Unload UF3
End Sub

This works fine, but where I have problems is writing code enabling
the user to return to the UF3 to change one or more selections.

What I want to do is:
1. Add a button to the Report sheet so the user can return to the
UserForm and change one or more selections, but keep the Report.xls
file open in the background.

2. Have the UserForm maintain their previous selections so they don't
have to start the process from scratch.

3. Upon their second wave of selections since the Report.xls is
already open, write the code so the user won't be alerted about re-
opening a file that is already open, and being in a 'read-only' mode.

I've been trying all sorts of code but nothing is working

I am working in Excel 2003.

Thank you for any direction with this.
 
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
Maintaining Formulas dcontois New Users to Excel 9 December 15th 09 03:13 PM
Creating Chart from Userform ListBox selections Corey Charts and Charting in Excel 2 September 8th 08 05:53 AM
Maintaining Formatting in a UserForm Rawce Excel Programming 6 October 26th 06 08:43 AM
UserForm with multiple selections Patrick Simonds Excel Programming 2 October 6th 06 05:06 AM
Userform maintaining items in list box after exiting Excel Ligaya Excel Programming 2 December 2nd 04 03:25 PM


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