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: 172
Default Using vbYesNo in conjuction with Userform

~~~~~~~~~~ Start CODE~~~~~~~~~~~~~~~~~
If ComboBox6.Value + ComboBox8.Value + ComboBox10.Value + ComboBox12.Value + ComboBox14.Value < TextBox47 Then
MsgBox "You have Not Used a Combination long enough" & vbCrLf & vbCrLf & vbTab & " to make up the Final Requirment.", vbYesNo, " ...."
End If
Unload Me
Sheets("Main").Select
Range("A1").Activate
End Sub
~~~~~~~~~~End Code ~~~~~~~~~~~~~~~~~~~
The above code is the last section of a userform i am creating.
What i am trying to do is prompt the user in case the values in the comboboxes 6-14,
DO NOT add up to the value placed in textbox47.

I want a VbYesNo prompt for the user to either continue with a Yes or
Modify the userform with a No.

But how can i get vbYesNo to Carry on with w Yes through the remaining code,
OR
Exit the vbYesNo and KEEP the Userform OPEN and then Activate the value in textbox47 for modifying,
WITHOUT exiting or unloading the values from the userform.
I am sure it is a simple placement of coding but it has eluded me to date.

Corey....
 
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
vbYesNo, change carriage return jbjtc Excel Discussion (Misc queries) 4 September 28th 07 09:13 AM
vbYesNo message box Big Mac Excel Programming 5 May 9th 06 02:42 PM
VBYesNo MsgBox - Computer always says "Yes" Peter Rooney Excel Discussion (Misc queries) 4 December 22nd 05 02:42 PM
VbYesNo Msg Box mjack003 Excel Discussion (Misc queries) 1 September 22nd 05 03:09 AM
vbYesNo mike allen Excel Programming 1 January 4th 04 03:59 PM


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