7

Am I limited to execute only 1 command in the Excel VBA Immediate Window. Is there a way to execute multiple statements?

1 Answer 1

9

Use the colon : key to concatenate multiple statements together. (ex: MsgBox "msgBox1" : MsgBox "msgBox2" will display two alert message boxes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.