コロンを付けると、複数のステートメントを1行で書けることを利用する。
Dim foo As Integer: foo = 0
Dim bar As String: bar = "hogehoge"
Dim obj As Object: Set obj = WScript.CreateObject("WScript.Shell")
VBAコロンを付けると、複数のステートメントを1行で書けることを利用する。
Dim foo As Integer: foo = 0
Dim bar As String: bar = "hogehoge"
Dim obj As Object: Set obj = WScript.CreateObject("WScript.Shell")