Created
November 8, 2017 13:40
-
-
Save joseph4tw/d518d0d6e757a9bc7c1ee3ef014a1a22 to your computer and use it in GitHub Desktop.
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
Option Explicit | |
Public Sub DoWork() | |
Dim name As String | |
name = "John" | |
Call PrintName(name) | |
Debug.Print "DoWork: " & name | |
End Sub | |
Private Sub PrintName(ByVal someName As String) | |
someName = "Mr. " & someName | |
Debug.Print "PrintName: " & someName | |
End Sub | |
' Output | |
' PrintName: Mr. John | |
' DoWork: John |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment