+ Reply to Thread
Results 1 to 3 of 3

macro runs slow on save

  1. #1
    Registered User
    Join Date
    03-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    macro runs slow on save

    Hello there,
    I have a workbook with 12 sheets and 2 rows of 'data' on each sheet.
    I have 4 macro's in Module1 that when run in isolation, from the module, take around 1 second.
    However, when I created a 'Before Save' in 'ThisWorkbook', it now takes some 15 seconds to run & save 2 rows.
    Actually the macro's modify the worksheet almost instantaneously, but when I try & select a cell, I get a 'not responding' message.
    I'm wondering how long it will take when I have 500 rows of data, per sheet.
    Why is it so slow?
    Do I have the scripts in the right place?
    Is there some text that I'm missing?

    Fred
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: macro runs slow on save

    Hi Fred,
    It seems that it is fast enough
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: macro runs slow on save

    Hello nilem,

    Thanks for that.

    Ah, the 'ScreenUpdating" goes on the 'ThisWorkbook' script, & you changed
    Format to Frmt, was that a problem?
    I don't understand how my original file is 26mb & the one you sent back is only 70kb.
    It looks like you only took out a few lines of code, was that the cause of the bloat?
    Surely you did something else?
    Thank-you nilem, I very much appreciate your help.

    Fred

+ 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] Macro runs really slow when going to one sheet
    By cory0789 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2014, 11:38 PM
  2. [SOLVED] Macro with calendar runs slow
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2013, 01:02 PM
  3. After printing, macro runs slow???
    By Infinity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2006, 10:38 PM
  4. [SOLVED] Macro runs slow
    By Sandy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-20-2005, 12:05 PM
  5. macro runs slow
    By nanomiter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-11-2005, 01:06 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