Sub versus private/Public,etc.

R

rob nobel

Is there a problem or purpose in calling the start of a procedure with just
Sub instead of the Private/Public/Static Sub?
Rob
 
J

J.E. McGimpsey

No. Default is Public so

Sub foo()

is equivalent to

Public Sub foo()


I like the latter simply because it makes the scope explicit.
 
R

rob nobel

So true and a clear answer. Thank you.
Rob

J.E. McGimpsey said:
No. Default is Public so

Sub foo()

is equivalent to

Public Sub foo()


I like the latter simply because it makes the scope explicit.
 
Top