Problem with private sub

  • Thread starter Thread starter Conrado Capistrano
  • Start date Start date
C

Conrado Capistrano

Hello NG,

I use private sub so that my code will not be run via Tools|Macro|Macros.
However, it seems that a private sub can only be called by a procedure
within the same module. My problem is that I have a several userforms that
also need to call those private sub. e.g a command button that will do some
validation then call the procedures.

Pleas help!

TIA

Jon-jon
 
Conrado

sub whatEver (Optional x as integer)
'your code here
end sub

Will not display in Tools|macros but can be called by other modules.


Neil
 
Neil,

That was great. thanks,

Jon-jon

Neil said:
Conrado

sub whatEver (Optional x as integer)
'your code here
end sub

Will not display in Tools|macros but can be called by other modules.


Neil
 
Back
Top