#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default need help.

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default need help.

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

--
Gary''s Student - gsnu200781


"Smart Akhtar" wrote:

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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"