0 Replies Latest reply on Oct 3, 2018 3:01 PM by cbedard

    Dialog.Focus

    cbedard

      I am trying to set the focus of a dialog box and I'm not having any luck with the syntax.

      Running a Macro...

       

      Application.ExecuteCommand("Menu VB Manager")

      When the Basic Scripts dialog opens I want to click the Run Button.  But it appears that when it opens it does not automatically retain Focus.  So I have to move Focus back to the dialog box and then click the Run Button.  Moving Focus should be something like...

      Dialog.Focus("Menu VB Manager")

      That does not seem to work.  I'm sure that is not correct, I just don't know what to use there.

      Once i get Focus then all I have to do is click the Run Button which should be:

      Run.Click()

       

      Thanks for any information!