+ Reply to Thread
Results 1 to 5 of 5

VBA Hiding columns if value equal to zero

  1. #1
    Registered User
    Join Date
    03-15-2021
    Location
    italy
    MS-Off Ver
    Microsoft 365
    Posts
    21

    VBA Hiding columns if value equal to zero

    Hello,
    I'd like to hide the columns in the file if the columns have no value (zero in every cell of the columns).
    I tried with VBA but it doesn't work.

    anyone can help me?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA Hiding columns if value equal to zero

    Something like
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-15-2021
    Location
    italy
    MS-Off Ver
    Microsoft 365
    Posts
    21

    Re: VBA Hiding columns if value equal to zero

    your macro works well !!
    thanks a lot.
    if I want to hide also empty columns?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: VBA Hiding columns if value equal to zero

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Or maybe
    Please Login or Register  to view this content.
    Last edited by jindon; 03-22-2022 at 05:29 AM.

  5. #5
    Registered User
    Join Date
    03-15-2021
    Location
    italy
    MS-Off Ver
    Microsoft 365
    Posts
    21

    Re: VBA Hiding columns if value equal to zero

    THANKS !!!
    I really appreciate your skills

+ 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. Hiding columns in excel without hiding form button
    By rename in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2013, 01:38 AM
  2. Replies: 9
    Last Post: 09-19-2012, 05:31 AM
  3. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-30-2011, 09:24 AM
  4. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 06:49 AM
  5. hiding all rows except the last with an equal number
    By jamiepullen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2008, 02:01 PM
  6. Replies: 0
    Last Post: 03-10-2006, 12:23 PM
  7. Replies: 2
    Last Post: 10-18-2005, 10:05 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