+ Reply to Thread
Results 1 to 2 of 2

On Button Click Run A Module Then Wait Till Complete Then Run Another Module...

  1. #1
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    On Button Click Run A Module Then Wait Till Complete Then Run Another Module...

    Hi Guys!


    I have button on my worksheet.

    I have 3 separate VBA Modules called

    1) paste

    2) pre

    3) clear


    How do i get my button to do the following for that Worksheet only when cicked.


    * Call module "paste"

    * Wait Unitl That Module Have Finished Executing

    * Call module "pre"

    * Wait Unitl That Module Have Finished Executing

    * Call module "clear"

    END


    Any help appreciated guys, i have coded the modules as was told i could do the above using a Button Click command somehow??

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: On Button Click Run A Module Then Wait Till Complete Then Run Another Module...

    Try:
    Please Login or Register  to view this content.
    You could also combine the code for the 3 macros into one macro and avoid having to call them.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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] how to click a button from the ThisWorkbook module
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-02-2017, 08:02 AM
  2. [SOLVED] Extra Sheet not a Chart or Old Macro Module or Worksheet - Appears to be normal module???
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-06-2017, 04:10 AM
  3. Compile error in hidden module: Module 1 when workbook opened on different machine!?
    By MathUKTeacher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2015, 04:38 PM
  4. Help calling a module from a button click
    By jpalmos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2013, 03:16 PM
  5. how to access Sheet module, normal module, Worbook module to type code
    By alibaba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2009, 07:51 AM
  6. Alert that module code is complete?
    By Redline in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2009, 03:22 AM
  7. [SOLVED] How to click the button from module?
    By OKLover in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2005, 06:05 PM

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