+ Reply to Thread
Results 1 to 3 of 3

Switch focus to inactive userform

  1. #1
    GrahamUNC
    Guest

    Switch focus to inactive userform

    Hello,

    I am having difficulty with 2 modeless user forms. They are both
    displayed at the same time and I need to switch the focus from one to
    the other through VBA. It doesn't work to just use the setfocus
    property of one of my controls on the other form to make it active.
    Any thoughts?

    Thanks in advance.


  2. #2
    Michel Pierron
    Guest

    Re: Switch focus to inactive userform

    Hi GrahamUNC,
    AppActivate "Title caption form you want activate"
    MP

    "GrahamUNC" <cngraham@gmail.com> a écrit dans le message de news:
    1113590134.885443.213560@o13g2000cwo.googlegroups.com...
    > Hello,
    >
    > I am having difficulty with 2 modeless user forms. They are both
    > displayed at the same time and I need to switch the focus from one to
    > the other through VBA. It doesn't work to just use the setfocus
    > property of one of my controls on the other form to make it active.
    > Any thoughts?
    >
    > Thanks in advance.
    >




  3. #3
    GrahamUNC
    Guest

    Re: Switch focus to inactive userform

    Great! It works perfectly. That was driving me crazy for the longest
    time.

    Michel Pierron wrote:
    > Hi GrahamUNC,
    > AppActivate "Title caption form you want activate"
    > MP
    >
    > "GrahamUNC" <cngraham@gmail.com> a =E9crit dans le message de news:
    > 1113590134.885443.213560@o13g2000cwo.googlegroups.com...
    > > Hello,
    > >
    > > I am having difficulty with 2 modeless user forms. They are both
    > > displayed at the same time and I need to switch the focus from one

    to
    > > the other through VBA. It doesn't work to just use the setfocus
    > > property of one of my controls on the other form to make it active.
    > > Any thoughts?
    > >
    > > Thanks in advance.
    > >



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1