Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Nested 'ElseIf' statements
Nested 'ElseIf' statements
Resolved · Low Priority · Version 2003
Graeme has attended:
Excel VBA Intro Intermediate course
Nested 'ElseIf' statements
Can you please advise if there is a limit to the number of 'ElseIf' statements you can nest into a single 'If' > 'End If'?
For upcoming training course dates see: Pricing & availability
RE: Nested 'ElseIf' statements
Hi Graeme
Thanks for your question
In principle there is no limit to the number of ELSEif in an if block. I would however recommend using a Select Case block for checking a large number of multiple conditions, as this is easier to maintain and understand
Regards
Stephen
|
