+ Reply to Thread
Results 1 to 7 of 7

how to hide formula without protecting sheet

  1. #1
    Registered User
    Join Date
    04-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    how to hide formula without protecting sheet

    Hi,
    I have sheet with formulas. how I can hide this formula without protecting sheet? Is there any vba code ?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to hide formula without protecting sheet

    No, there isn't.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: how to hide formula without protecting sheet

    You can hide the column (or row).
    If you just want the results to be invisible, you change the font color to the same color as the fill color.

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

    Re: how to hide formula without protecting sheet

    You could also turn off the Formula Bar but obviously the end-user could just un-hide it again should they wish / know how... moreover it's likely it would make you unpopular amongst your colleagues ... generally speaking I'd say most users prefer to not have their XL environment altered without their prior knowledge.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: how to hide formula without protecting sheet

    Why not simply protct the sheet? That way not only can you hide the formulas but no-one can delete them.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: how to hide formula without protecting sheet

    xld had a solution for a similar problem here:

    http://www.vbaexpress.com/forum/showthread.php?t=3394

    HTH
    John

  7. #7
    Registered User
    Join Date
    09-22-2012
    Location
    Muscat
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: how to hide formula without protecting sheet

    Alright, the question is to hide the formula in a cell/row/column as well as work normally in rest of the sheet. I tried a few VBAs but it wont be of much help if the macros are disabled. I'd to face a similar situation and this is what I did. Hope it helps.

    SOLUTION:
    Before protecting the sheet with Password-1, use "Allow Users to Edit Ranges" with Password-2 on rest of the cells where formula needn't be hidden.

    Password-2 can be shared with the end user, while Password-1 still hides the formulas in selected cells.

    You can also leave blank the Password-2, if needed.

    Did it help??

    Denny George

+ 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