want ot use for my business

  • Thread starter Thread starter prasad3586
  • Start date Start date
P

prasad3586

Hi,

I was wondering if i can use if else or switch sort of things as we
can do in c or c++ or like in java,
I have seen only like if but what hapen when we will be having more
then 3 conditions which can be checkes at a time and need to be done
few calculations.

I hope i can get help


Thank You
 
In VBA You can use

If condition1 Then
'do something
ElseIf condition2 Then
'do something else
ElseIf '...
' 'etc
EndIf

or a Case Structure

Select Case True
Case object = value1: 'do something
Case object = value:2 'do something else
'etc.
Case Else: '...
End Select

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

What do you use your R-Pi for - which Projects are you planning!? 1
Thoughts on Apple AirTags? 1
Epson XP-3150 not printing 2
IF, AND & OR 3
GDPR 11
Excel VBA 1
Spam 4
Count Conditional formating data 3

Back
Top