+ Reply to Thread
Results 1 to 5 of 5

Hide columns with 0 in a specific cell

  1. #1
    Registered User
    Join Date
    03-11-2012
    Location
    Barcelona
    MS-Off Ver
    Excel 2003
    Posts
    4

    Hide columns with 0 in a specific cell

    Hello.

    First of all thank you very much for this forum, it is excelent!

    I have an excel sheet where I have to hide columns of a specific range when the value of a specific cell in that column is 0. The problem is that this macro becomes very slow, moreover if I run it in excel 2007 (I use a normal for - next macro).

    I have seen that there is a macro by the user watersev in another thread that is awesome. This is the thread:

    http://www.excelforum.com/excel-prog...ell-value.html

    The problem is that my excel skills are not that professional to modify it. What I exactly need is:

    I need to hide columns in a specific range from column G to column BD.
    In the row number 6 I have numbers
    If the number in this cell is 0 the column has to be hidden

    Can somebody help me?

    Thank you in advance,

    Manolo

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Hide columns with 0 in a specific cell

    Post the macro you're using -- in CODE tags, please.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Hide columns with 0 in a specific cell

    hi Poldark, please check attachment
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-11-2012
    Location
    Barcelona
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Hide columns with 0 in a specific cell

    Hi watersev.

    Thank you very much! it works perfectly

    Regards from Spain

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Hide columns with 0 in a specific cell

    thank you

    if the solution offered takes care of your needs, please mark the thread as Solved:

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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