need help.

S

Smart Akhtar

Hi,
I have devloped a macro to automate a report.
in this macro I have many module. When we click alt + F8 to run the
macro , I see all the list of module.I just want ot show only main
module. is there any way to hide other module except main module.

PLease help with code.
Thanks in advance.
 
G

Gary''s Student

Make them Private:

Sub main()
Call littleone
Call bigone
End Sub

Private Sub littleone()
MsgBox ("little")
End Sub

Private Sub bigone()
MsgBox ("big")
End Sub
 

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

Top