Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Macro to run module
Joseph Bottoms 
      
16 months ago
I have created a public module for emailing reminder letters which works perfect. I am trying to create a macro to run my module. My macro does not see my module, even though I can see it in the Module section. When I create the macro the module name is in the drop down menu as a user defined function. But when I run the macro i get the error "the expression you entered as a function can not be found" What am I doing wrong?
Kevin Robertson  @Reply  
          
16 months ago
Is this a sub or function?

If it is a sub you will need to create a wrapper function as RunCode only works with functions.

If your sub routine is: Public Sub EmailReminder

Your wrapper function could be:

    Public Function RunEmailReminder()
        Call EmailReminder
    End Function


Then you can use RunEmailReminder() in your Macro.
Sandra Truax  @Reply  
         
16 months ago
Thanks Kevin!  I didn't know you could do this!  This has been added as one of my "Favoirtes" in my Access Notes database!
Joseph Bottoms OP  @Reply  
      
16 months ago
Thanks Kevin! That worked perfect. Thank you so much.
Kevin Robertson  @Reply  
          
16 months ago
You're welcome.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/18/2026 7:48:08 AM. PLT: 1s