|
Question : How to read contents of Macros using VBA
|
|
How can I use VBA to view the actions and arguments within a macro?
|
|
Answer : How to read contents of Macros using VBA
|
|
If you hadn't realised then you can do
Sub ConvertMacro(pstrMacroName As String) DoCmd.SelectObject acMacro, pstrMacroName, True DoCmd.RunCommand acCmdConvertMacrosToVisualBasic End Sub
But this brings up the dialog and will require sendkeys if you want to eliminate the dialog that allows you to Add Error Handling and Include Comments
Cheers, Andrew
|
|
|
|