+ Reply to Thread
Results 1 to 7 of 7

vba hide /unhide columns based on the cell color

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Luterbach
    MS-Off Ver
    MS office 2013
    Posts
    55

    vba hide /unhide columns based on the cell color

    Hello Everyone!

    Can someone help me find a code which will perform hiding / unhiding columns base on cell color in heater?

    Thank you in advance.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: vba hide /unhide columns based on the cell color

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.

    -




    See clip
    To add a file to a post

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,694

    Re: vba hide /unhide columns based on the cell color

    What are the criteria for hiding or unhiding a column? Please be specific.

    What is the trigger for this action? Do you want to press a button, or do you want this to happen every time there is an update? Be aware that there is no VBA event that detects when a cell color changes, so it would have to check every time the selection changes.

    What does "color in heater" mean?

    I recommend you attach a sample file. The paper clip icon does not work for attachments. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    11-17-2015
    Location
    Luterbach
    MS-Off Ver
    MS office 2013
    Posts
    55

    Re: vba hide /unhide columns based on the cell color

    Hello,
    I would like to have a macro code that will perform " hide/unhide columns". In my example columns :A,C,D and F(columns with heather cell highlighted in red)should be hidden/unhiden

    for easier navigation.***My original file has more then 50 columns.

    Help and any suggestions would be greatly appreciated.
    Thank you in advance.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: vba hide /unhide columns based on the cell color

    How about
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-17-2015
    Location
    Luterbach
    MS-Off Ver
    MS office 2013
    Posts
    55

    Re: vba hide /unhide columns based on the cell color

    Fantastic !! _ Thank you so much.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: vba hide /unhide columns based on the cell color

    You're welcome & thanks for the feedback

+ 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. Auto hide and unhide of columns based on a cell value
    By bala04msw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-02-2016, 08:07 AM
  2. hide and unhide columns based on cell value
    By darijokesar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-29-2014, 03:51 AM
  3. [SOLVED] Hide/Unhide columns based on the value of the cell help!
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-11-2014, 09:03 PM
  4. [SOLVED] Hide/Unhide Columns based on Cell Value
    By dberg in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-26-2013, 03:36 PM
  5. Hide/Unhide columns based on value of a cell
    By redrackham in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-24-2011, 09:14 AM
  6. Hide & Unhide columns based on a cell value
    By DaveNUFC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-21-2010, 09:40 AM
  7. [SOLVED] Hide or Unhide certain columns based on a cell value
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2006, 01:04 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