Execute Multiple Lines in the Immediate Window of an Excel VBA workbook
Asked Answered
P

1

7

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

Posticous answered 19/9, 2018 at 17:17 Comment(0)
P
9

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

Posticous answered 19/9, 2018 at 17:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.