+ Reply to Thread
Results 1 to 3 of 3

Wait procedure until UserForm has been updated?

  1. #1
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Wait procedure until UserForm has been updated?

    Hello,

    Im not sure if this is possible or not but would think it was.

    I have a procedure that runs and does x, y and z in module 1.
    It then loops through an array and ensures the data is in the array.

    If the data is not in the array then it needs to be added, however, the user has to select the pricing method and source first.

    To save manual error from an input box, I want the user to select from a UserForm combobox.

    Please Login or Register  to view this content.
    So the procedure would show the UserForm and the user would manually select the Pricing Source and Pricing Method from the drop downs.

    I then want to continue my procedure in module 1? Is this possible?

    Thanks

    McCrimmon
    Last edited by mccrimmon; 10-18-2011 at 07:27 AM.
    McCrimmon

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Wait procedure until UserForm has been updated?

    That is what will happen by default - your code will pause while the form is shown and resume when the form is unloaded or hidden. You will need to return the values selected in the form, either using public variables or form properties. In the latter case, you will need to ensure that the form is only hidden, not unloaded, so that you can refer to the values on it.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Re: Wait procedure until UserForm has been updated?

    Interesting.....I did not know that.
    Thanks for the info! Much appreciated.

+ 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