error: sub or function not defined

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

hi

whts usually the reason for such error. i have my private
function in "This Workbook" module and my sub
Testmyfunction () is module1.

thanks
 
Mark,

If a procedure is declared as Private, it can be called only from
procedures within the same module. What procedure, and where does
that procedure reside, is flagged as "not found".


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Either you mistyped the name of the function or you declared the
function as Private. Declaring it as public, lets you call it from
another module.

K
 

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

Back
Top