+ Reply to Thread
Results 1 to 4 of 4

Hiding Columns Based on Value - Help is much appreciated!

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    34

    Hiding Columns Based on Value - Help is much appreciated!

    Hey All,

    I'm having a bit of trouble writing a macro to hide columns if target cells are "0". I say a "bit of trouble" because I really have no idea what I'm doing when it comes to writing VBA, although I can normally code-sling my way out of problems. I started with a bit of code I had adapted to hide rows, and now want to hide columns, specifically I:Q wherever cells I74:Q74 are 0. Here is what I attempted:

    Please Login or Register  to view this content.
    I'm sure that there is some stuff in there that defies the most basic rules of VBA but I've never formally learned them, unfortunately. I've also attached a sample for additional clarification.

    Thanks very much for any help!

    Best,

    Scott
    Attached Files Attached Files
    Last edited by Tenaciousjeebs; 12-04-2014 at 12:19 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Hiding Columns Based on Value - Help is much appreciated!

    Hi Tenacious

    Please wrap ANY Code you post in Code Tags...it's a Forum Requirement.

    Having done so, try this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Hiding Columns Based on Value - Help is much appreciated!

    Excellent! That worked perfectly. I'll make sure to use the code tags next time.

    Best,

    Scott

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Hiding Columns Based on Value - Help is much appreciated!

    Hi Scott

    It's a minor point but please do this now in your initial Post
    I'll make sure to use the code tags
    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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 based on Cell Value
    By Dynamo418 in forum Excel General
    Replies: 1
    Last Post: 08-08-2012, 08:21 PM
  2. hiding columns based on date
    By mattmorris in forum Excel General
    Replies: 1
    Last Post: 07-24-2012, 11:44 PM
  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 columns based on passwords
    By jmatchus in forum Excel General
    Replies: 0
    Last Post: 01-17-2005, 10:15 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