+ Reply to Thread
Results 1 to 4 of 4

Optimize Code

  1. #1
    Registered User
    Join Date
    02-02-2016
    Location
    Gainesville, FL
    MS-Off Ver
    2016
    Posts
    8

    Optimize Code

    I have this code, which works, but it is incredibly slow. I have been trying to find a way to optimize it but can't. I thought about selecting all the rows first, and then hiding selection, but can't figure that out. I also thought about selecting/hiding ranges at time, rather than individual rows, but can't figure that out either. Any help would be appreciated.

    Objective: Hide all rows within a range that contain "" within column 6.

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Optimize Code

    Try

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Optimize Code

    Maybe
    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Optimize Code

    No loop option...
    Please Login or Register  to view this content.
    By the by...
    Hide all rows within a range that contain "" within column 6.
    Why are you looping every cell and not just cells in Col 6

    If it is to hide all rows that have a blank cell in Col F then this will suffice...
    Please Login or Register  to view this content.
    Last edited by Sintek; 11-04-2020 at 04:54 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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. [SOLVED] Optimize Code
    By MusicMan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2019, 04:01 PM
  2. optimize code if possible
    By mohadin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2019, 10:31 AM
  3. optimize code if possible
    By mohadin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2019, 06:18 AM
  4. How can I optimize my code
    By viettest in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-08-2019, 05:02 PM
  5. Need to optimize the code
    By pm.patel189 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2018, 01:06 PM
  6. Optimize a code
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2015, 05:31 PM
  7. Optimize code
    By DarkKnightLupo in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 02-19-2014, 08:58 AM

Tags for this Thread

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