Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public bothLocalAndGlobal As String
Public Sub Test()
SubA
SubB
End Sub
Public Sub SubA()
bothLocalAndGlobal = "ABC"
MsgBox "SubA: " & bothLocalAndGlobal
End Sub
Public Sub SubB()
Dim bothLocalAndGlobal As String
'later I decide this variable should be global
'but I forget to take out the local declaration
MsgBox "Sub B: " & bothLocalAndGlobal
End Sub