+ Reply to Thread
Results 1 to 7 of 7

Auto Hiding a column

  1. #1
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Auto Hiding a column

    Hi Guys,

    I have gotten help on this before and have the following formula in sheet 2

    Sheet 2
    Please Login or Register  to view this content.
    And this formula in "THIS WORKBOOK"
    Please Login or Register  to view this content.
    What I want to do now is hide a few more columns in Sheet 2 only
    I tried

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    But this is giving me an error.

    Basically when I login a cell auto populates with 1234 this then shows the column. When I log out the cell automatically depopulates and the column disappears. However when someone else logs in the column does not appear.
    The columns in Sheet 2 I'm looking tio hide are X,AM,AR,AW & BD
    Any ideas?

    Thanks Nitro
    Last edited by Nitro2481; 12-18-2014 at 12:52 PM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Auto Hiding a column

    Try:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Auto Hiding a column

    Hello again Lewis

    I am a little confused.Where are these codes to go?

    I have put it in Sheet 2
    End If
    Please Login or Register  to view this content.
    I added the red bit and I'm getting an error in the green bit

    On the THIS WORKBOOK

    Please Login or Register  to view this content.
    I also added the red here. Not sure where to put your
    Please Login or Register  to view this content.
    The fact it has shide2 I was thinking it should go on the THISWORKBOOK page but not sure.

    Thanks

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Auto Hiding a column

    In ThisWorkbook, make sure you change BOTH lines below in red:
    Please Login or Register  to view this content.
    You can make similar changes for other columns.

    Lewis

  5. #5
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Auto Hiding a column

    Hi Lewis,

    I've done what you have suggested and I'm no longer getting an error message. Do I not need to do anything on the sheet 2 code also as this is only calling for
    x.

    Please Login or Register  to view this content.
    I tried
    Please Login or Register  to view this content.
    Sorry

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Auto Hiding a column

    When you only have one item, your original code will work.

    When you have more than one item you need to change the syntax to "X:X, AM:AM, ..." etc.
    When you have more than one item you also must change the other code:

    From:
    Please Login or Register  to view this content.
    To:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor Nitro2481's Avatar
    Join Date
    09-09-2014
    Location
    Laois, Ireland
    MS-Off Ver
    2013
    Posts
    323

    Re: Auto Hiding a column

    Lewis,

    You did it again. That worked. Thanks a mil

    Nitro

+ 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] Auto Hiding a column when a certain person logs in.
    By Nitro2481 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2014, 09:31 AM
  2. Auto-hiding all but this week in a 365 column page
    By Speshul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2012, 07:59 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. [SOLVED] Hiding column/row labels --without hiding entire columns/rows
    By daniel.wolff@csfb.com in forum Excel General
    Replies: 2
    Last Post: 10-18-2005, 10: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