+ Reply to Thread
Results 1 to 5 of 5

Very slow small macro (using all cpu space available)

  1. #1
    Registered User
    Join Date
    08-07-2017
    Location
    Newport, Wales
    MS-Off Ver
    2013
    Posts
    13

    Very slow small macro (using all cpu space available)

    Hi everyone, I'm using a macro I've used previously with no problem.
    While trying a new way of calling the macro it now slows WAY down to about 1 cell per second and I don't know way:

    Base Macro:
    Please Login or Register  to view this content.
    Problem Macro:

    Please Login or Register  to view this content.
    Note that I've disabled the whatevertheyarecalled:
    Please Login or Register  to view this content.
    I've used 'Public Sub GetPayBand' before with no problem so now I'm puzzled.

    Any idea where I should look to remedy this?

    Cheers.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Very slow small macro (using all cpu space available)

    There's no need to loop.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-07-2017
    Location
    Newport, Wales
    MS-Off Ver
    2013
    Posts
    13

    Re: Very slow small macro (using all cpu space available)

    That sped things up a lot, cheers.
    I'll apply that to some similar macros I have around.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Very slow small macro (using all cpu space available)

    No problem.

    By the way which sheet is that code meant to be for?

    If it's meant to be for 'DataDumpResults' it would be better to explicitly refer to that sheet rather than using ActiveSheet.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-07-2017
    Location
    Newport, Wales
    MS-Off Ver
    2013
    Posts
    13

    Re: Very slow small macro (using all cpu space available)

    I'll give that a go. Cheers Norie.

+ 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. Check for small caps after the first space.
    By ABBOV in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2016, 11:06 AM
  2. Replies: 1
    Last Post: 08-16-2016, 10:04 PM
  3. small macro running v slow?
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-17-2014, 07:20 AM
  4. [SOLVED] Help speed up slow INDEX (SMALL function
    By submariner18 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-12-2012, 01:14 PM
  5. [SOLVED] Slow index/small/row array
    By Jovica in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-06-2012, 06:59 AM
  6. [SOLVED] Optimizing/speeding up a slow INDEX & SMALL function for retrieving multiple matches
    By lesoies in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-07-2012, 11:56 AM
  7. Very slow small vba code
    By jpruffle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2009, 12:33 PM

Tags for this Thread

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