muppetgeoff
New member
- Local time
- Today, 01:51
- Joined
- Aug 9, 2004
- Messages
- 9
Hi Everyone,
I hope this isn't a really stupid question
Basically, I've searched and searched, but can't seem to find an answer to the following:
If I create a Sub or Function that is bound to a Form, so It's only accessible by that form (private). So what is the difference between typing just 'Sub' or 'Function', and typing 'Private Sub' or 'Private Function' ?
The same question the other way round, when I create a seperate VBA Module for my Public procedures, what is the dufference between typing just 'Sub' or 'Function' and typing 'Public Sub' or 'Public Function' ?
Is the use of the 'Public' and 'Private' used to visually differentiate between Public and Private procedures, and actually makes no difference?
Then a final, but possibly pointless question is; If I create a 'Private' procedure in a Module, can it then be referenced by any Public procedure contained in that Module?
Hope some one can help
Many thanks in advance,
Geoff
I hope this isn't a really stupid question

Basically, I've searched and searched, but can't seem to find an answer to the following:
If I create a Sub or Function that is bound to a Form, so It's only accessible by that form (private). So what is the difference between typing just 'Sub' or 'Function', and typing 'Private Sub' or 'Private Function' ?
The same question the other way round, when I create a seperate VBA Module for my Public procedures, what is the dufference between typing just 'Sub' or 'Function' and typing 'Public Sub' or 'Public Function' ?
Is the use of the 'Public' and 'Private' used to visually differentiate between Public and Private procedures, and actually makes no difference?
Then a final, but possibly pointless question is; If I create a 'Private' procedure in a Module, can it then be referenced by any Public procedure contained in that Module?
Hope some one can help

Many thanks in advance,
Geoff
Last edited: