My Technical Notes

Thursday, 17 December 2015

VBA: Multiple Statements on Same Line

Use the colon symbol (`:`) to separate statements. This is useful when declaring and assigning a variable on one line:


Dim MyName As String: MyName = "Tahir"

No comments: