Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

want ot use for my business

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
prasad3586@gmail.com - 22 Jan 2006 14:49 GMT
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
Bob Phillips - 22 Jan 2006 15:19 GMT
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)

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thank You
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.