Code Examples

Convert Macro

acCmdConvertMacrosToVisualBasic

Selects a macro and creates a Module for it.

'***************** Code Start *******************
'Code by Terry Wickenden

Function ConvertMacro(strMacro as String)
  DoCmd.SelectObject acMacro, strMacro, True
  DoCmd.RunCommand acCmdConvertMacrosToVisualBasic
End Function

'****************** Code End ********************

© 1998 - 2011 Terry Wickenden TKW Design Site developed maintained and hosted by TKW Design. This site is best viewed at 1024 x 768. Optimised for Firefox.