Embedded Macro

kitty77

Registered User.
Local time
Yesterday, 19:09
Joined
May 27, 2019
Messages
715
I have a form with several command buttons. I would like to click a button automatically if: If [notes] Like "*Apple*" Then Call Command646_Click

If seems to work fine on a command button that is vba but it does not work if the command button is an embedded macro.

I get the this error: Compile error: Sub or Function not defined.
 
Don’t think you can - see this link
 
One more reason to eschew macros and employ VBA.
 
There's a button on the ribbon that lets you convert all macros to VBA.
 

Users who are viewing this thread

Back
Top Bottom