• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 23. VBA Introduced > Using the VBA Control Structures

Using the VBA Control Structures

VBA provides several different constructs for looping and decision processing. The sections that follow cover the most commonly used constructs. You can find the examples in the form called frmControlStructures at www.samspublishing.com.

If...Then...Else

The If...Then...Else construct evaluates whether a condition is true. In the following example, anything between If and Else occurs if the statement evaluates to True, and any code between Else and End If execute if the statement evaluates to False:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint