Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Declaring variables on a single line in VBA
Sub CalculatePayroll()
Dim a, b, c, d As Integer '' Incorrect
'' Do this instead:
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim d As Integer
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment