98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Select case
vba courses london - Select case
Resolved · Low Priority · Version Standard
Nicola has attended:
Excel VBA Intro Intermediate course
Select case
How do you do a case select routine
RE: select case
Nicola
The Select Case routine is usually prefered to large nested If routines.
A simple Select Case routine is as follows:
Select Case Weather
Case "Rain"
Instruction = "Wear a Raincoat"
Case "Sunshine"
Instriction = "Use Suncream"
End Select
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
VBA tip:Use VbNullString instead ofWhen needing to default a String variable back to it's default of "" use vbNullString as in the following example: |