Created
June 21, 2016 16:10
-
-
Save erajanraja24/82439462cd1ad8ac421320e842e1742c to your computer and use it in GitHub Desktop.
Excel VBA Scope of variables
This file contains hidden or 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 Procedure_Scope_1() | |
Dim i As Integer | |
i = 5 | |
Debug.Print "Variable i value in Procedurecheck1 is " & i | |
End Sub | |
Sub Procedure_Scope_2() | |
Debug.Print "Variable i value in Procedurecheck2 is " & i | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment