please see...
 Sub or Function not defined (Visual Basic)

A *Sub* or *Function* must be defined in order to be called. Possible
causes of this error include:

   -

   Misspelling the procedure name.
   -

   Trying to call a procedure from another project without explicitly
   adding a reference to that project in the *References* dialog box.
   -

   Specifying a procedure that is not visible to the calling procedure.
   -

   Declaring a Windows dynamic-link library (DLL) routine or Macintosh
   code-resource routine that is not in the specified library or code resource.

To correct this error

   1.

   Make sure that the procedure name is spelled correctly.
   2.

   Find the name of the project containing the procedure you want to call
   in the *References* dialog box. If it does not appear, click the
*Browse*button to search for it. Select the check box to the left of
the project
   name, and then click *OK*.
   3.

   Check the name of the routine.


2012/4/5 ChilExcel <chilexcel...@gmail.com>

> Please attach example, to better understand
>
>
> Chilexcel
>
>  2012/4/5 Matt <moni...@gmail.com>
>
>> Hello, I'm trying to call a public function in one module from another
>> Sub procedure in another module and it won't call the the function. I get
>> an error that says.."sub function not defined" But when I include the
>> function within the same module, my code works...
>>
>> I can't seem to find the answer online...
>>
>>
>> What is the problem?
>> Thanks again for your help.
>>
>> Matt
>>
>> --
>> FORUM RULES (986+ members already BANNED for violation)
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>>
>> 2) Don't post a question in the thread of another member.
>>
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>>
>> 4) Acknowledge the responses you receive, good or bad.
>>
>> 5) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> ------------------------------------------------------------------------------------------------------
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>
>
>
> --
> Visita ; http://sites.google.com/site/chilexcel/Home
> Visita ; http://www.youtube.com/user/timextag41
>
>


-- 
Visita ; http://sites.google.com/site/chilexcel/Home
Visita ; http://www.youtube.com/user/timextag41

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to