AccessModifiers
Basic Access Modifier
Option Explicit
'Available thorough all Modules
'Exposed as Macro
Sub Test()
MsgBox "Hello"
End Sub
'Available thorough all Modules
'Exposed as Macro
Public Sub PublicTest()
MsgBox "Hello"
End Sub
'Only Available in that Module
Private Sub PrivateTest()
MsgBox "Hello"
End Sub
Protip
- Use
Option Private ModuleIn Beginning/ Top of Module to Stop being exposed as macro or UDF