+ Reply to Thread
Results 1 to 4 of 4

Un-hide Columns based on a cell value

  1. #1
    Registered User
    Join Date
    08-05-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    33

    Un-hide Columns based on a cell value

    I have a large worksheet with Hidden Columns that I need to UnHide when any cell in a particular range = 1.

    If any Cell in Range "BF9:BF35" = 1 Columns "Q" and "AS" have to UnHide. I have tried various VBA Macros from the web with no success. I am using Excel 2010, 2013 and 2016 on different computers that run this spreadsheet.

    Any help would be appreciated.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Un-hide Columns based on a cell value


    As it is at beginner level - just with Find method like in VBA inner help - at least show your code attempts …

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

    Re: Un-hide Columns based on a cell value

    Quote Originally Posted by Stealth2017 View Post
    If any Cell in Range "BF9:BF35" = 1 Columns "Q" and "AS" have to UnHide.
    try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-05-2017
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    33

    Re: Un-hide Columns based on a cell value

    Hi Marc L, This is what I currently have: The following code works in Un-Hiding Columns "Q" & "AS" if any cell in the range BF9:BF35 = 1.

    Please Login or Register  to view this content.
    What I am trying to work out is how to modify this code to include the following:

    IF AG9:AG35=1 Un-Hide Columns "R" & "AT", IF AH9:AH35=1 Un-Hide Columns "S" & "AU" and IF AI9:AI35=1 Un-Hide Columns "T" & "AV"
    Bill.

+ 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. [SOLVED] Automatically Hide or not Hide columns, based on cell value (to the left)
    By sherylt13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2018, 07:47 PM
  2. [SOLVED] VBA to hide columns based on a cell value
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2018, 12:35 PM
  3. Hide Rows/Hide Columns Based on Value in Cell
    By brickwall823 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2015, 02:42 PM
  4. Hide columns based on cell value
    By jwillis07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2014, 06:57 AM
  5. Hide columns based on cell value
    By jwillis07 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2014, 04:59 AM
  6. Hide columns based on value in other cell
    By Johnmus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2011, 04:21 PM
  7. [SOLVED] Hide columns based on cell value
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 06-23-2005, 01: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