Last active
March 1, 2016 11:47
-
-
Save bervukas/578bdcf316952af016e3 to your computer and use it in GitHub Desktop.
Declaring variables on a single line in VBA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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