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!

Macro Object 3

Status
Not open for further replies.

stephenj789

Technical User
Joined
Jan 28, 2002
Messages
58
Location
US
I have a macro that I created using the Macro Builder in Access. I would like to run that macro in a VBA module. How do I refer to the macro in the VBA code and get it to run? Thank you.
 
Docmd.RunMacro "MacroNameHere"

Kyle
 
or you can use the wizard to convert the macro to VBA

Tools > Macros > Convert macros to visual basic
 
The first one worked and I am sure the second suggestion would work to. Thanks!
 
If you plan on learning VBA, which will give you so much more possibilities than macros, then converting your macros to VBA is a good way to start - see how they 'translate' to code.

thanks for the star
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top