+ Reply to Thread
Results 1 to 5 of 5

VBA performance with building formulas

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    VBA performance with building formulas

    I am having a performance issue with this code.

    Please Login or Register  to view this content.
    The above code takes forever to put the formula into each cell. However, if I change the code for rcell to "rcell.value=1", it flies through it. Is there a way to make the formula more efficient?

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: VBA performance with building formulas

    Not sure, but what if you change rCell.Formula to rCell.Value?

  3. #3
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: VBA performance with building formulas

    thanks for suggestion..did not make it any faster

  4. #4
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: VBA performance with building formulas

    Can you post the full macro? Maybe it would give additional insight.

  5. #5
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: VBA performance with building formulas

    That really is the full macro. See below

    Please Login or Register  to view this content.
    I did some tests to confirm that the slow part is putting the formula into "rCell"

+ 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