How can I realize two or more instructions in a case statement?
For example:
Select case
Case1: Instruction 1; Instruction 2; Instruction 3
Case2: Instruction 4; Instruction 5
Case else: Something else
End select
How can I realize two or more instructions in a case statement?
For example:
Select case
Case1: Instruction 1; Instruction 2; Instruction 3
Case2: Instruction 4; Instruction 5
Case else: Something else
End select
Using And Function after Select case
I may not understand this correctly but do you refer to Conditions for the "select case"?
Or do you mean "case 1: MsgBox("Text") AND variable1= 17 AND DoSomethingElse" ?
Please Login or Register to view this content.
Entia non sunt multiplicanda sine necessitate
Thank you
I had to edit this post:
I did it exactly as you said, that means "just make a new line for every instruction within the CASE statement"
No ":" necessary, no "&" or "AND" necessary
I did not know it would be THAT EASY. Thanks again @shg
Last edited by ydrive; 01-06-2017 at 02:52 PM.
You're welcome.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks