Embedded Macro (1 Viewer)

kitty77

Registered User.
Local time
Today, 16:20
Joined
May 27, 2019
Messages
713
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.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 21:20
Joined
Feb 19, 2013
Messages
16,719
Don’t think you can - see this link
 

GPGeorge

George Hepworth
Local time
Today, 13:20
Joined
Nov 25, 2004
Messages
2,059
One more reason to eschew macros and employ VBA.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 16:20
Joined
Feb 19, 2002
Messages
43,645
There's a button on the ribbon that lets you convert all macros to VBA.
 

Users who are viewing this thread

Top Bottom