+ Reply to Thread
Results 1 to 1 of 1

Speed it up - a Benefit inherent in using the Cells Method

  1. #1
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Speed it up - a Benefit inherent in using the Cells Method

    A recent thread has given me the idea for this tip. The problem was to piece back together a workbook that had been split in many worksheets because of column overflow. The OP, however, insisted that it could only be restored by matching the column and row headers. I eventually accepted that.

    During testing the OP mentioned that the shortened sample was taking 15 minutes to run and then it gave unexpected results - well we resolved the results issue but I realized that I could speed up the processing significantly by having the matches and placements all take place in core.

    I wrote, serendipitously, the first routine using the cells method:

    Please Login or Register  to view this content.
    And the conversion to core processing was trivial - all I had to to was replace:

    wc.Cells and ws.Cells with S and W respectively:

    Please Login or Register  to view this content.

    And, should you like to try the code, the Demo File:RCMatchDemo.xlsm

    Running the 2X routine plain took 48.25390625 timer units vs 42.8984375 timer units without screen updating
    Running the 3X routine took 1.26953125 timer units - whatever they are (seconds???)
    This is the thread
    Last edited by xladept; 08-02-2013 at 10:06 PM. Reason: No Function needed in this version
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. How Does What-If Analysis Benefit A Business?
    By Xpocalypse in forum Excel General
    Replies: 4
    Last Post: 01-22-2012, 10:57 AM
  2. Excel 2007 : Taxable Benefit Pay
    By jantonio in forum Excel General
    Replies: 3
    Last Post: 03-11-2011, 10:13 AM
  3. Returning the number of cells from one method to another method.
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2010, 11:28 AM
  4. Comparison formula - including inherent errors
    By sh3896 in forum Excel General
    Replies: 4
    Last Post: 10-05-2009, 12:57 PM
  5. [SOLVED] How can MS Excel benefit my Company
    By Arthur in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-26-2005, 05:05 AM

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