Consulting

Results 1 to 3 of 3

Thread: Prevent multiple PickFolder windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Feb 2022
    Posts
    9
    Location

    Prevent multiple PickFolder windows

    Hello,

    I have a button on a userform that opens a 'Session.PickFolder' window. If you keep pressing the button it will open multiple windows.

    What would be the best way to prevent this behavior and open only one instance regardless of how many clicks?

    Thanks.

  2. #2
    VBAX Mentor
    Joined
    Sep 2019
    Location
    Philippines
    Posts
    421
    Location
    maybe use API to check if the PickFolder window is already open.
    set the window to Foreground if it does, otherwise open new instance.

  3. #3
    VBAX Regular
    Joined
    Feb 2022
    Posts
    9
    Location
    I'll try that. Thank you arnelgp.

Posting Permissions

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