Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

What's the diference of Public Sub and Private Sub?


willunited
 Share

Recommended Posts

To keep it brief a Private sub can only be called within the scope of a form or module.

A Public Sub can be called anywhere in any scope through the entire Project.

This goes the same with functions and declaring variables.

So if you want to pass a value through a different scope module, Use the public routine.
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...