+ Reply to Thread
Results 1 to 7 of 7

Insert a 'pause' between VBA commands

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Insert a 'pause' between VBA commands

    I am trying to populate the data for a chart with a 'pause' between each command. It was possible in Lotus 1-2-3 but I don't know if there is an equivalent in VBA.
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Insert a 'pause' between VBA commands

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Insert a 'pause' between VBA commands

    Hi there,

    Take a look at the attached version of your workbook and see if it does what you need. It uses the following code:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Insert a 'pause' between VBA commands

    They both work a treat. Thank you. How do I get the chart to 'refresh' after the insertion of each value?

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Insert a 'pause' between VBA commands

    Not to sure what you mean...Currently the chart is updating as each value is populated

  6. #6
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Insert a 'pause' between VBA commands

    Hi Sintek

    My chart doesn't populate until the macro has finished running. Neither of the two suggested solutions do. I must have a setting wrong somewhere. Any ideas where I should start looking?

    Thank you for your assistance.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Insert a 'pause' between VBA commands

    Add this snippet...
    Please Login or Register  to view this content.
    Also check your workbook calculation setting under Options|Formulas

+ 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. Disable/Hide Insert, Delete and Hide commands
    By nateinoh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2013, 10:49 AM
  2. Macro Recording Chart Format commands missing all important commands!!!!
    By nounours in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2013, 09:20 PM
  3. Need to pause between a RefreshAll and Save commands
    By tigerrv in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2012, 04:42 PM
  4. Pause Macro commands to allow Excel formulas to run
    By simpson11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2012, 05:02 PM
  5. 64 bit Pause
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-04-2011, 05:19 AM
  6. Pause
    By rwgrietveld in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2009, 02:55 AM
  7. Best way to pause?
    By Ramthebuffs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2006, 11:48 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