+ Reply to Thread
Results 1 to 2 of 2

Loop not optimised

  1. #1
    Forum Contributor
    Join Date
    10-25-2011
    Location
    Preston, England
    MS-Off Ver
    Excel 2016
    Posts
    136

    Loop not optimised

    I need to delete rows where values in column B are not equal to an array. Ideally I'd have used autofilter with an <>array but this only works with 2 criteria. I can't use =array with the results I want to delete as occasionally new entries are added. In the end I went for the loop below but due to the multiple queries it takes longer than desired.

    Any suggestions to optimise this code or alternative suggestions to achieve the desired result?

    Cheers

    Please Login or Register  to view this content.
    Last edited by radddogg; 05-04-2017 at 09:38 AM. Reason: ???

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,731

    Re: Help me optimise this loop?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Using Solver Add-In to optimise the results on a scorecard
    By Silverminer in forum Excel General
    Replies: 0
    Last Post: 03-13-2013, 10:08 AM
  2. Optimise uncovered position
    By nalaka in forum Excel General
    Replies: 0
    Last Post: 05-22-2012, 01:36 AM
  3. VB - Need to optimise/alternative to copy and paste
    By scaifie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-13-2011, 06:07 PM
  4. Optimise Repeat External Queries
    By sivlin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2011, 09:49 PM
  5. optimise calculations
    By canadave in forum Excel General
    Replies: 7
    Last Post: 02-02-2011, 01:27 PM
  6. Optimise VBA Code for SUMPRODUCT analysis
    By TMS in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-30-2010, 11:49 AM
  7. how I can optimise this macro?
    By mithil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2010, 03:42 AM
  8. How to optimise IFISERROR
    By AussieExcelUser in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2006, 06:53 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