+ Reply to Thread
Results 1 to 2 of 2

Need help speeding this loop. Hide/unhide 1200 columns based on boolean criteria

  1. #1
    Registered User
    Join Date
    12-01-2016
    Location
    Birmingham, AL
    MS-Off Ver
    standard 2016
    Posts
    8

    Need help speeding this loop. Hide/unhide 1200 columns based on boolean criteria

    Hello fine people,

    I'm trying to hide columns based on a TRUE/FALSE criteria within a range. IN another thread, I read that moving my range into an array would speed up the loop. It helped a little but this is still too slow for my liking. Any suggestions?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Need help speeding this loop. Hide/unhide 1200 columns based on boolean criteria

    Anyway, 1200 columns with data is a lot of work for excel.

    1. You could use two area variables to eliminate the "IF" statement ("IF" in combination with a reference to the columns of the sheet will slow down the code)
    2. Disable others "slow downers", not just "ScreenUpdating"

    and maybe it will be a little faster ...

    Maybe something like that, although I do not believe it:
    Please Login or Register  to view this content.

+ 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. VBA to hide and unhide columns based on 2 criteria
    By Oliver1470 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-21-2019, 04:33 PM
  2. hide & unhide columns on different sheet based on criteria
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-25-2018, 02:31 AM
  3. Way to hide or unhide sheets based on selection criteria
    By jshrader in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-21-2016, 07:28 PM
  4. Hide/Unhide row based on given criteria w. no Trigger butn
    By m1zz13 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-18-2013, 06:31 AM
  5. Hide/Unhide Rows based on Criteria
    By Phillycheese5 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2010, 02:11 PM
  6. Hide & Unhide columns based on a cell value
    By DaveNUFC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-21-2010, 09:40 AM
  7. Replies: 1
    Last Post: 06-05-2006, 03:10 PM

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