+ Reply to Thread
Results 1 to 3 of 3

How to set up a modeless userform so user actions can be performed

  1. #1
    Forum Contributor
    Join Date
    03-01-2019
    Location
    New York, New York
    MS-Off Ver
    Office 2016 for Mac
    Posts
    125

    How to set up a modeless userform so user actions can be performed

    I would like to run the code below to set up a pivot table, then wait to run the remaining code until the user sets up the pivot table fields (since these change from client to client). I had read that creating a modeless user form would be the way to go. However, on testing it seems that the code keeps running even though the userform dialog is activated.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    03-01-2019
    Location
    New York, New York
    MS-Off Ver
    Office 2016 for Mac
    Posts
    125

    Re: How to set up a modeless userform so user actions can be performed

    From some additional research, I see that with a modeless user form the code does not wait (I thought it did). However, with a modal form I am unable to interact with the workbook so that's not a good solution either. Is there a way where I can make the code wait AND interact with the workbook?

  3. #3
    Forum Contributor
    Join Date
    03-01-2019
    Location
    New York, New York
    MS-Off Ver
    Office 2016 for Mac
    Posts
    125

    Re: How to set up a modeless userform so user actions can be performed

    I ended up separating the code into 2 macros. Then I added a user form with a command button to run the code. I added a show user form code (with vbModeless) to the end of the first macro. Then clicked the button to run the second part of the code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Modeless Userform
    By omagoodness in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2019, 04:28 PM
  2. how to undo actions performed by addin
    By vini1508 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2016, 01:21 AM
  3. Can't set userform to modeless!
    By fcb1900 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2010, 02:16 PM
  4. Logon Box - User / Pass - Unique actions per user.
    By CVinje in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-04-2009, 07:41 AM
  5. Actions between user actions
    By Indiana Epilepsy and Child Neurology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2006, 12:45 PM
  6. [SOLVED] Excel user form modeless
    By Hammer1947 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2006, 10:00 PM
  7. Modeless userform
    By hngo in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-13-2005, 05:05 AM

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