Do not shift focus when users click userform
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Do not shift focus when users click userform

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi all,
    I wrote a macro for Attachmate Extra! personal client. Due to company policy, they disabled the macro running feature on the software. Luckily, the software supports VBA & I was able to access the objects using Excel. The macro is executed when users press a command button I put on a form loaded with Excel ie control Attachmate Extra! using Extra. My question:
    1. In Excel -> Whenever users press the command button, the focus is shifted to Excel. I have not been able to disable the TakeFocus******* for the Application/UserForm class. Any way to do this??

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Wellington
    Posts
    115
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    Do you mean the focus is on Excel worksheet once the button is click? Or perhaps the focus remains on the Userform itself?

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    I want the focus to remain on the application I am controlling. My solution at the moment is to do SendKeys "%{TAB}" to alt-tab back to Extra!. Wondering if there's a more elegant solution...

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com