Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Select Case

Status
Not open for further replies.

AnalystDBA

Programmer
Jan 2, 2002
20
0
0
AU
Hi everyone.

Simple question. Is it possible to nest a select case statement within another select case??

Cheers
AnalystDBA
 

In VB it is possible so I would believe in VBA it would be possible also.
[tt]
Dim A As Integer, B As Integer
A = 1
B = A + 1
Select Case A
Case 1
Select Case B
Case 1
Case 2
MsgBox "Nested Select Possible"
End Select
End Select
[/tt]

Good Luck

 
Just to confirm VB5's assumption - Yup - entirely possible as shown above Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top