+ Reply to Thread
Results 1 to 2 of 2

Hide Column and then loop to next column

  1. #1
    Registered User
    Join Date
    11-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Hide Column and then loop to next column

    Hi, I need help with hiding a column(s) if all cells are empty then hide column. Example - column D, rows 3 to 260 if all the cells within that column are empty then hide just that column. The below formula works to hide column "D". I'm not sure how to loop thought each column separately. Any help will be greatly appreciated. Thanks.

    Please Login or Register  to view this content.
    Last edited by vlady; 11-04-2012 at 09:42 PM. Reason: code tags

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,494

    Re: Hide Column and then loop to next column

    I don't think that script does what you think it does. Unless I'm mistaken, it will hide or unhide column D dependent on what is in cell D260.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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