+ Reply to Thread
Results 1 to 2 of 2

Alternative to looping through columns

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    Alternative to looping through columns

    Hi there,

    If a particular row does not contain an x then the column needs to be hidden.
    Currently I have some code that works. However it has to loop through every cell in turn on that row and if it is empty then hide it.

    I have to do this on lots of sheets with lots of columns and I am concerned about the time it will take. Does anyone know of an alternative to looping please?

    Essentially I want to say 'for all empty cells on this row, hide the columns'.

    Thank you!
    Last edited by Jessica.Bush; 12-27-2014 at 10:22 AM.

  2. #2
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    Re: Alternative to looping through columns

    Sorry, I have just solved this.

    For anyone looking in the future I used this:

    Please Login or Register  to view this content.
    Much faster and better!

    Thanks!

+ 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. Alternative Method for Countif, without Looping
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-03-2013, 04:50 PM
  2. Suming up alternative rows/columns
    By Phaneendra in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2013, 10:47 AM
  3. Do Until Looping (not looping through all other columns)
    By orle8050 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 10:37 AM
  4. any alternative method for looping?
    By dan2010 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-18-2010, 06:43 AM
  5. Replies: 1
    Last Post: 03-19-2009, 03:20 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