+ Reply to Thread
Results 1 to 3 of 3

Code Optimisation - Run Speed

  1. #1
    Registered User
    Join Date
    05-07-2013
    Location
    Cheltenham
    MS-Off Ver
    Excel 2007
    Posts
    2

    Code Optimisation - Run Speed

    Hey everybody.

    I have a spreadsheet that simulates mixing across a series of mixed vessels. The equations defining each vessel are connected, creating a circular reference so I have enabled iterative calculation in the workbook.

    The attached code generates data to go into a chart by evaluating each function at time (t) = 0 to 120. Since the output cell is a formula, I used paste special / paste values to get the actual number at each t.

    In essence, the code preforms the Copy / Paste loop 360 times. Is there an alternative method of writing this to speed up the execution of the macro? I can edit the workbook to upload it if necessary.

    Thanks in advance.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Code Optimisation - Run Speed

    try
    Please Login or Register  to view this content.
    Last edited by tehneXus; 06-01-2013 at 10:01 AM.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    05-07-2013
    Location
    Cheltenham
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Code Optimisation - Run Speed

    Ignore me, teheneXus that's perfect.
    Attached Files Attached Files
    Last edited by swizard; 06-01-2013 at 10:25 AM.

+ 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