View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz[_2_] JLGWhiz[_2_] is offline
external usenet poster
 
Posts: 1,565
Default Calling Private Sub from User Form

Put it in the userform code module as private.



"Rob" wrote in message
...
Hi,

I have a User Form which when displayed runs a Sub in a module, I want to
set this Sub to Private so that it doesn't show in the Run Macro window.
However, setting to Private causes the Sub to be hidden from the USer Form
and thus, the code fails. Is there a way to set the Sub to Private and
still have it run by code in a User Form.

Thanks in advance for any suggestions. Rob