Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a function from a macro

Status
Not open for further replies.

dds82

Programmer
Jun 5, 2002
251
US
I'm writing a function that I need to call from a macro. What module do I put the function in?

Thanks.
 
Put the function in any global module. If you don't have on create one. Modules>New write your function.

Robert Berman
 
I did that. It gives me an error that it can't find the function. Is this because I'm trying to call it from the AutoExec macro? Is it possible to call functions from that macro?
 
You can call it using the RunCode macro, and the command line would be like RunFunction()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top