Skip to content

Instantly share code, notes, and snippets.

@erajanraja24
Created June 21, 2016 16:10
Show Gist options
  • Save erajanraja24/82439462cd1ad8ac421320e842e1742c to your computer and use it in GitHub Desktop.
Save erajanraja24/82439462cd1ad8ac421320e842e1742c to your computer and use it in GitHub Desktop.
Excel VBA Scope of variables
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