Results 1 to 10 of 10

VBA more efficient

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    497

    VBA more efficient

    Hi

    I've got a workbook where some VBA code puts a formula in a range, similar to in the attached simple example.

    Due to the size of the tables involved this can take a while to calculate so I was wondering if maybe VBA code would be more efficient to get to the same result. I had in my head maybe some sort of loop but before I try and think how to properly code it to test it, I was wondering whether anyone had a view of whether it maybe a more resource friendly method or whether not to bother.

    The loop I was imaging was along the lines of this

    For each cell in range F4 to N9, loop through and
    Check for the parent from column E in the other table in column C
    Then for each iteration that parent appears in column C
    Set the cell value to the childs name from column A

    Thanks
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] More efficient deletion
    By saechaoc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2015, 09:09 AM
  2. Could my code be more efficient?
    By daveeeeee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2015, 11:50 AM
  3. Matching string in an array of strings
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2013, 05:54 PM
  4. Wondering if theres a more efficient way besides For Each to...
    By trickyricky in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-28-2012, 12:39 PM
  5. VBA Code More Efficient
    By pickledmuffin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2008, 04:37 AM
  6. more efficient VBA?
    By markx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2006, 12:45 PM
  7. Is there a more efficient way to do this?
    By Steve Roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2005, 01:05 PM

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