Macro condition

J

Jan

Hi,
Is it possible to set a condition where an autokey macro will run only if a
certain form is the active form. In other words, if a certain form is not
open and in use on the screen, the autokey macro will not create an error
message will just do nothing.
Thanks,
J
 
S

Steve Schapel

Jan,

Put this in the Condition of the macro action...
Screen.ActiveForm.Name="NameOfYourForm"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top