calling module function from macro

T

TMGreen

How do you call a function from a module (class module - module shown in the
database module list) using the runcode command in a macro.
 
D

Douglas J. Steele

I don't believe you can call functions that are in class modules from
macros. I believe the functions need to be in regular modules.
 
T

TMGreen

when you say regular module - what does that mean? do you mean behind a form
for example?
 
D

Douglas J. Steele

No. The code associated with a form is actually a class module as well.

I mean what you get when you click on New on the Modules tab, or Insert |
Module from the menu bar.
 

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

Top