简体   繁体   中英

MS Access : Can we edit the Macro in VBA? and how?

The Scenario: So I have a form called FormA , and that form has a button called buttonA . When I click buttonA it runs a Macro that will open a form, FormB .

The Question: Can I edit the Macro in VBA? Making it open FormC instead.

You can export the code from a macro using;

Application.SaveAsText acMacro, <MacroName>, <Filename>

and then you can import code back after editing using;

Application.LoadFromText acMacro, <MacroName>, <Filename>

The text content of the macro isn't VBA but you could probably edit it successfully.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM