Select to view content in your preferred language

What's the difference between Private Sub and Public Sub

610
1
01-09-2013 07:24 AM
MichelleCouden1
Deactivated User
I am working in VBA what is the difference in Private Sub and Public Sub??
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor
That becomes an issue if code in another module ever needs to refer to that subroutine. A Private sub would be inaccessible by code in that other module, while a Public sub could be referenced by code in that other module.
0 Kudos