Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default How to leave form displayed

On my spreadsheet, the user will push a button to display a form with the
lunch menu. The lunch menu is a multi tab control with 8 tabs (with mulitple
selections on weach tab).

The form allows the user to make a selection on each tab but they can only
make one selection for lunch.

I have an edit that cylces through the tabs and see if there is a selection.
If there are multiple selections (on different tabs), I display a message to
alert the user to review the form and change it so there is only 1 selection.

How do I code it so that after the user clicks "ok" on the message, the
message goes away, and the form is still displayed until the user clicks
"Order" again?

Right now when the user clicks "ok", the message goes away and the code
continues to process (which hides the form.)

Thanks for the help.....
--
JT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default How to leave form displayed

In your If statement that cycles through the controls to see if more
than one is selected, add an Exit Sub line.
If "criteria met to display message"
Msgbox "More than one item selected. Please correct."
Exit Sub
End If
JT wrote:
On my spreadsheet, the user will push a button to display a form with the
lunch menu. The lunch menu is a multi tab control with 8 tabs (with mulitple
selections on weach tab).

The form allows the user to make a selection on each tab but they can only
make one selection for lunch.

I have an edit that cylces through the tabs and see if there is a selection.
If there are multiple selections (on different tabs), I display a message to
alert the user to review the form and change it so there is only 1 selection.

How do I code it so that after the user clicks "ok" on the message, the
message goes away, and the form is still displayed until the user clicks
"Order" again?

Right now when the user clicks "ok", the message goes away and the code
continues to process (which hides the form.)

Thanks for the help.....
--
JT


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
How to leave form displayed JT Excel Programming 1 September 10th 07 10:00 PM
No events in form displayed from callback routine Josh Sale Excel Programming 2 November 3rd 06 02:29 AM
Modal form won't leave Merlin[_3_] Excel Programming 1 September 28th 06 07:32 PM
keep form displayed JT[_2_] Excel Programming 2 February 24th 05 08:45 PM
Show user form, leave wosksheet active Wric Smith Excel Programming 3 December 4th 03 08:46 PM


All times are GMT +1. The time now is 06:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"