Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
By default all subs are public right?
Yes. Would having the module and the sub the same name affect it? Yes. A module and a procedure (in any module) should never share the same name. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Alex" wrote in message ... hhmmm... By default all subs are public right? Would having the module and the sub the same name affect it? "Norman Jones" wrote: Hi Alex, As Chip points out in the adjacent post, unless the called sub is marked as Private, the fact that the two subs are in different modules should not pose any problem. Further, if the subs were marked as Private, I would expect an error message akin to: Sub or Function not defined In your described scenario I would not expect your reported error. -- Regards, Norman "Alex" wrote in message ... I figured it out... somewhat... I have 2 different Modules....And that was the problem.... I needed to have the SUBs in the same Module for the procedure to procedure call to work. DOH! "Norman Jones" wrote: Hi Alex, What are the names of the modules in this project? Where are the two procedures stored? --- Regards, Norman "Alex" wrote in message ... Here's what i get when I press F1 (HELP)... Expected variable or procedure, not module There is no variable or procedure by this name in the current scope, but there is a module by this name. This error has the following cause and solution: The name of a module is used as a variable or procedure. Check the spelling of the variable or procedure name, and make sure the name you want to refer to isn't private to another module. A module name can be a qualifier, but can't stand alone. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calling procedure when leaving cell | Excel Worksheet Functions | |||
Calling a procedure in a procedure | Excel Programming | |||
Calling a procedure in a procedure | Excel Programming | |||
Calling a .Net Procedure from a Macro | Excel Programming | |||
Calling a Custom Function within a Procedure | Excel Programming |