+ Reply to Thread
Results 1 to 3 of 3

Use a cell to hide or unhide a cell

  1. #1
    Forum Contributor
    Join Date
    08-31-2007
    MS-Off Ver
    2010
    Posts
    130

    Use a cell to hide or unhide a cell

    Is it possible to have my VB code look at a cell on my active sheet to determine whether or not a sheet should be VeryHidden or not?

    So if Sheet1 Cell L40 is blank sheet2 is Veryhidden but,
    if Sheet1 Cell L40 = "tool" sheet2 would be un hidden.

    My thought process here is that I need to work on my VeryHidden sheet on a regular basis
    and if I can enter a code into one cell that would allow me access to sheet2 that would make life much easier.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Use a cell to hide or unhide a cell

    Yes, you'll need to do this in the Worksheet_Change event on SHeet1

    and

    Please Login or Register  to view this content.
    Not tested in Excel.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Use a cell to hide or unhide a cell

    Hi there,
    done with following code assigned to worksheet change event on sheet1:
    Please Login or Register  to view this content.
    Book1.xlsm

    Hope it helps!
    Regards
    Miroslav R.

    (If You like my solutions, feel free to add reputation.)

+ 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] Unhide and Hide row(s) based on value in a cell in the row above
    By jammi1710 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-18-2014, 01:27 AM
  2. [SOLVED] How do I hide and unhide cell contents?
    By cdmterence in forum Excel General
    Replies: 8
    Last Post: 01-02-2014, 03:55 AM
  3. Hide/Unhide sheets when a cell has a certain value
    By Magical in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2012, 03:16 PM
  4. [SOLVED] Using Value in Cell to hide/unhide rows
    By maayub15 in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 03-15-2012, 02:23 AM
  5. Hide Unhide Columns on certain cell value
    By gmalpani in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 11-24-2011, 11:05 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