+ Reply to Thread
Results 1 to 4 of 4

Slow macro due to formulae being copied in a range of cells

  1. #1
    Registered User
    Join Date
    07-16-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Slow macro due to formulae being copied in a range of cells

    Dear all,

    I have written a vba code to:

    -calculate a range of cells by copying Formula A to a range.

    A B C D
    1 FA FA FA FA
    2 FA FA FA FA
    3 FA FA FA FA

    -then summing each column and copying the summed data on row 4 to another sheet.

    -Then the vba clears the range and this time enters Formula B to the same range, sums each column at row 4 and copy's it to the same sheet under the results for the previous, Formula A.

    Instead of having the formulae in each column and having a separate sheet for each calculation, I thought this would be simpler. However, it is extremely slow.

    I was wondering if there is a smarter way of doing this. I thought of arrays, but wasn't sure.

    Thanks for your help and time.

    Themd

  2. #2
    Registered User
    Join Date
    05-31-2007
    Posts
    16

    Re: Slow macro due to formulae being copied in a range of cells

    Can you post what you have so far in your macro? Might be easier to tweak what you have rather than make up a formula and re-invent your process.

  3. #3
    Registered User
    Join Date
    07-16-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Slow macro due to formulae being copied in a range of cells

    If you scroll down you will see the section where I define two formulas and use it to calculate and copy paste.

    Thanks for your time.


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-16-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Slow macro due to formulae being copied in a range of cells

    I have redefined a range within the section I would like the formula to be copied to. (A1:GC900) Which is actually, W9.

    If I could do a count row on column V9 and copy the formulas until the end of that column instead of going all the way down to 900, it should fix it.

    But I do not know how

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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