+ Reply to Thread
Results 1 to 2 of 2

Looking for a macro (automated) method to hide unused columns

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    406

    Looking for a macro (automated) method to hide unused columns

    Hello,
    In the attached file, the crimson/yellowish cells auto-populate based on variables seen on another tab in the "Live" version. So, from left to right there may be anywhere from 1 to 24 dates populated. I am wondering if there is a way to have columns automatically hide/unhide based on whether or not a date populates. Ideally this would not involve a macro "button" but would occur automatically based on whether a column header populates.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Looking for a macro (automated) method to hide unused columns

    the crimson/yellowish cells auto-populate based on variables seen on another tab
    I assume that you are referring to the dates in row 3. Is this correct?
    Could you upload a version of your file that includes the other tab and also any formulae and macros that you are currently using to auto-populate the cells?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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] Can I hide all unused columns and rows in Excel by keyboard?
    By LAPIII in forum Excel General
    Replies: 2
    Last Post: 08-15-2018, 04:13 PM
  2. [SOLVED] Macro for Removing Unused Rows and Columns
    By Neilesh Kumar in forum Excel General
    Replies: 1
    Last Post: 04-20-2017, 11:04 AM
  3. hide rows with 0 values in columns using filter method
    By Goodstart14 in forum Excel General
    Replies: 1
    Last Post: 12-16-2015, 12:32 AM
  4. [SOLVED] Syntax error in Hide Unused Rows Macro
    By Damjag in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2013, 09:10 AM
  5. Find last visible row with data in sheet and hide unused columns
    By specialk610 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2013, 10:04 AM
  6. How to create a scalable method to hide and unhide columns
    By dmerlino in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2012, 02:28 AM
  7. Hide or erase unused rows and columns
    By MaxAlbertsson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2007, 07:52 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