+ Reply to Thread
Results 1 to 4 of 4

Auto Unhidin columns

  1. #1
    Registered User
    Join Date
    08-22-2015
    Location
    PL
    MS-Off Ver
    2003
    Posts
    9

    Auto Unhidin columns

    The macro is opening all excel files in the folder, refresh them and save. Some of files have hidden columns. In row 1 there are dates like: A1: 2015-01 ; B1: 2015-02 ; C1: 2015-03... The column should be hidden if the row 2 has no value, so this should be hidden:
    H1: 2015-08
    H2:

    and this should be unhidden:
    G1: 2015-07
    G2: 454578778


    How to write code which will be hidding and unhiding columns according to this rule?

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Auto Unhidin columns

    Hi there,

    See if the following code does what you need:

    Please Login or Register  to view this content.
    The highlighted values can be altered to suit any future worksheet changes.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Auto Unhidin columns

    Please Login or Register  to view this content.
    Please click the * below if this helps

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Auto Unhidin columns

    Hi again,

    Many thanks for the Reputation increase - much appreciated

    Best regards,

    Greg M

+ 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 size cells on visible columns Not Auto-sizing correctly
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-27-2014, 02:03 PM
  2. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  3. Auto fill in columns
    By joyeapen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2011, 04:18 AM
  4. Auto-Hide Columns
    By Brian Matlack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2006, 11:42 AM
  5. [SOLVED] Auto fill of columns
    By linstock in forum Excel General
    Replies: 1
    Last Post: 01-03-2006, 07:25 PM
  6. auto Text to Columns
    By Steven Reid in forum Excel General
    Replies: 2
    Last Post: 05-11-2005, 09:06 PM
  7. Auto deleting specified columns
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2005, 03:00 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