+ Reply to Thread
Results 1 to 2 of 2

Loop Across Columns...If Blank Cell, Loop Down Rows

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    45

    Loop Across Columns...If Blank Cell, Loop Down Rows

    Trying to code in a loop...

    It needs to loop across columns on row 11, when it hits a blank/empty cell, it loops down that column....eg Hits a blank cell, goes down and hits another blank cell, goes down again etc until it gets to a pre-defined range of rows (Lets just make it easy and say 100 rows).

    If every cell within that column is blank, the macro hides that column.

    I then need the macro to carry on until it hits the end column.

    Columns start from 2 (B) and go across to 22 (W).


    I currently have the below...which does not work and i'm not sure why.

    Any help would be greatly appreciated.


    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    06-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: Loop Across Columns...If Blank Cell, Loop Down Rows

    HI flindy87,
    Try this, I think it might be what you need.

    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. Loop Across Columns If Blank Cell Loop Down Rows
    By flindy87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 10:22 AM
  2. [SOLVED] Trying to write a Loop to perform calculations within blank rows between populated rows
    By ObliviousAmI in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-15-2014, 06:35 PM
  3. [SOLVED] Loop to delete rows on another tab and run until blank cell is met.
    By SillySox in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-14-2013, 11:09 PM
  4. loop through rows for match insert blank rows with title
    By reeyu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2012, 07:34 AM
  5. Hide blank columns via loop
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2011, 10:17 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