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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2007 Macro1 - RunMacro - MyMacro

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
GB
Hello.

When I run Macro1 in its design view, I got error message
Microsoft Office Access can't find the object 'MyMacro.'
What I set is
In Macro1 design view, Action: RunMacro, Arguments: MyMacro
where MyMacro is a Sub in Module1.

I will be appreciated for any help.
 
I'd use RunCode and make MyMacro a Function instead of a Sub

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thank you PHV.

I have just tried to change the Sub to Function but got the same error!
 
Did you change RunMacro to RunCode ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top