Sub versus private/Public,etc.

  • Thread starter Thread starter rob nobel
  • Start date Start date
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
 
No. Default is Public so

Sub foo()

is equivalent to

Public Sub foo()


I like the latter simply because it makes the scope explicit.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top