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: 20
Default If Then statement in a userform sub

Hi all:

The following sub is for the "OK" button on the userform.


Private Sub CommandButton1_Click()
If OptionALL Then Cells(1, 2).Value = "ALL"
Call Analyze

If OptionSelect Then Cells(1, 2).Value = TextBox1.Text
Call Analyze2
JOIST.Hide
End Sub


The problem is when the first "IF" statement is not true it does not
skip "Call Analyze" which is a sub in the standard module.
how can i make it,when the first "if" statement is not true, to go to
the second "if" statement? Thanks for any help!

 
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
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Statement to give focus to a specific control on a UserForm? Fred Holmes Excel Programming 3 December 20th 04 07:56 PM
Access from add_in userform to main template userform.... Ajit Excel Programming 1 November 18th 04 05:15 PM
Linking userform to userform in Excel 2003 missmelis01 Excel Programming 2 August 27th 04 08:07 PM


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

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"