vba courses london - select case loop
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - IF loop

vba courses london - IF loop

resolvedResolved · Low Priority · Version Standard

replyReply Thu 1 Feb 2007, 10:07 Edited on Thu 1 Feb 2007, 16:13Delegate Jane said...

Jane has attended:
Excel VBA Intro Intermediate course
Excel Advanced course

IF loop

How do I create an IF loop?

For upcoming training course dates see: Pricing & availability

replyReply Thu 1 Feb 2007, 16:18Trainer Carlos said...

RE: IF loop

An IF loop allows the user to check several conditions and run the approproate code for each condition. The syntax is

If <condition> Then
<Statement Block>
Else
<Statement Block>
End If

eg

If City = "London" Then
Delivery = 50
Else
Delivery = 75
End If

 

Vba tip:

Stuck in a Code Loop

If you ever get stuck in an infinite code loop when programing in VBA use

CTRL+BREAK

to exit the procedure

View all VBA hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard