okay. suggest you move the button's code into a public function in a
standard module, so it can be called from the button's event procedure, and
also from the macro, as
Private Sub command 38_Click()
isButtonCode
End Sub
Public Function isButtonCode()
' put here whatever code was running from the button
End Function
(depending on what the code is doing, it may have to be rewritten to run in
a standard module rather than the form's module, but try it first and see
how it goes.)
now when you click the button manually in the form, it'll call the function
that runs the code. and you can use the RunCode macro action to run the
function directly, using the Action Argument
Function Name: isButtonCode()
hth