Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob
Thanks for your help and thanks for taking the time to explain it to me. Otto "Bob Phillips" wrote in message ... Otto, These two modules are in different code modules, one in a sheet code module, the other in (I presume) a normal code module. You cannot invoke Private procedures across different modules. If you include an 'Option Private Module' in the code module, those procedures will not show in the macro list, but will still be available to other modules in that project. The one thing you won't be able to do is to invoke them from another project (workbook). -- HTH Bob Phillips "Otto Moehrbach" wrote in message ... Excel 2002, Win XP I have a sheet macro: Private Sub Worksheet_Activate() Call UpdateSummary End Sub The UpdateSummary macro looks like this: Private Sub UpdateSummary() 'Stuff End Sub Upon activation of the sheet, I get an error message on the "Call UpdateSummary" line that it is not defined. If I remove the word "Private" before the Sub UpdateSummary() all works fine. I wanted to ensure that the UpdateSummary macro was not displayed in the Tools - Macro - Macros list, so I put the "Private". Obviously there is something here that I don't know. What is it? Thanks for your help. Otto |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=SUBSTITUTE(C4,"~?#","") will this work to remove multiple string | Excel Worksheet Functions | |||
how does this formula work: =LOOKUP(2,1/((COUNTIF(D6:D41,""&D6:D41)=0)*(D6:D41<"")),D6:D41) | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
pictures to work with "data" "sort" option | Excel Discussion (Misc queries) | |||
Why doesn't "Workbook.Range("myrange").value" work? | Excel Programming |