+ Reply to Thread
Results 1 to 2 of 2

Run VBA code before huge calculations

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Run VBA code before huge calculations

    Hi,

    I've created a dashboard which consists of a front end, a calculations sheet and multiple data sheets (with several thousand lines of data - and still growing).

    The front end of the dashboard is dynamic with around 20 charts.

    Each time I drill down the data by department, the calculations sheet has to recalculate (my calculations look at each month week by week) so I put in some VBA code when the button is clicked to put a semi transparent box over the entire screen saying "Loading... Please Wait" - Due to the calculation process taking around 4 seconds - Just so the end user doesnt think it has crashed.

    At the moment the calculations seem to take priority, then the semi transparent rectangle appears and then disappears after the charts have changed (I achieved this by activating the shape upon button click, then adding an application.wait command before turning the visibility of the rectangle to false.

    Now my question would be, is there any way to show this semi transparent shape BEFORE the calculations start?

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Run VBA code before huge calculations

    Maybe this is too simplistic, but have you tried

    Please Login or Register  to view this content.
    before the transparent shape, and

    Please Login or Register  to view this content.
    afterwards?

+ 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. Replies: 2
    Last Post: 01-14-2016, 11:25 AM
  2. Code to perform a vlookup with the form and do calculations
    By larrysdime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2015, 03:58 PM
  3. [SOLVED] macro / code to create pivot on huge amount of data
    By Bax in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-16-2014, 03:25 AM
  4. VBA code for sorting duplicates and calculations
    By 86gts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2012, 10:33 PM
  5. [SOLVED] huge huge excel file... why?
    By Josh in forum Excel General
    Replies: 12
    Last Post: 02-09-2006, 06:00 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