+ Reply to Thread
Results 1 to 5 of 5

hide cell contents without column or row hide

  1. #1
    Registered User
    Join Date
    07-16-2010
    Location
    CO
    MS-Off Ver
    Excel 2003
    Posts
    18

    hide cell contents without column or row hide

    Is there anyway to hide data and protect the data within a cell without doing a column or ride hide? I was using the numberFormat = ";;;" or something like that to hide the cell contents. Is there anyway to get similar results thru VBA??

    Thanks for your help

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: hide cell contents without column or row hide

    I've seen cells with white font color that looks like it is a blank cell. I wonder if you used that and protect the sheet, if that would work for you?

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: hide cell contents without column or row hide

    Irrespective of whether or not the cell constant is visible in the cell (custom format, font) it will still be visible in the Formula Bar ... removing that is generally speaking ill-advised.

    If the cells are formulae - you can format the font colour and then lock & hide the cell - at which point when you protect the worksheet neither the in-cell value nor the formula will be visible to the end user.

    I think the real question is why you need to do this etc...
    Last edited by DonkeyOte; 07-30-2010 at 12:56 AM. Reason: edit: typo

  4. #4
    Registered User
    Join Date
    07-16-2010
    Location
    CO
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: hide cell contents without column or row hide

    I have a data validation list in a column of cells and I wonly want them to appear or to be used when the user toggles a certian button to use those hidden cells. The way the sheet is configured, I can't use a column hide or else I would do so. Is there a way to lock and unlock these cells in vba and may be i can hide the column in different colors like white. thanks for your help.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: hide cell contents without column or row hide

    One "fudge" to prevent the DV lists from being active when you don't want them to be is to force an error in the Source.

    Consider a Named Range called MyList that is the source for a DV list in B1.

    I can modify the Source formula for the List as so:

    Please Login or Register  to view this content.
    the above is simply an example that states where A1 is 0 the DV List should not populate
    (though the arrow appears in B1 I can't select anything until A1 is modified)

    Above is just to demo a basic premise - ie you can control as and when the DV lists are "active" (per se)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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