+ Reply to Thread
Results 1 to 2 of 2

Clean up and Speed Up Code

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Clean up and Speed Up Code

    Hi all,

    Wondering if I can call on your skils to help clean up and speed up the code I have managed to cobble together and borrow from all over the internet and other guru's?

    Code basically ADDS three columns after the last column and runs three different formulas down a dynamically growing (rows) report and then formats the dataset to freeze the top row, add a filter and borders i.e. make it presentable.

    Current number of rows is 24409 and will double incrementally on a daily basis within the next 3-4 months.

    Like I say code works just takes ages to run - approx. 4-5 mins or would you say that's normal?

    Please Login or Register  to view this content.
    Any assistance/tips, etc would be greatly appreciated

    Kind regards,

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Clean up and Speed Up Code

    I suspect some of the time is down to calculating the UDF you use, but you should remove the Calculate line since your formulas are already calculated (setting calculation to manual doesn't work if you then use the Formula property to assign the formula to multiple cells at once.). You should also call your two final subs before you turn screenupdating etc back on, not after.
    Remember what the dormouse said
    Feed your head

+ 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. Have VBA code that needs performed in multiple sheets. Also help being sure code is clean
    By baby_kay_2003 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2014, 10:57 PM
  2. Clean up code
    By madhatter40 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2014, 09:21 AM
  3. Clean up my code!
    By Mr ZN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2013, 12:19 AM
  4. [SOLVED] VBA Code to optimize and clean data- clean out numerical/ or symbol
    By tracylsr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2012, 04:21 PM
  5. VBA code clean up help
    By recon427 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-17-2012, 01:19 AM

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