+ Reply to Thread
Results 1 to 8 of 8

hide formulas

  1. #1
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    hide formulas

    know tell me if you can create a macro to hide formulas or functions of a spreadsheet from Excel 2007?
    Last edited by Birnen; 09-03-2010 at 05:26 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: macro to hide

    If you format the cells > protection > hidden and then protect the worksheet, you will not be able to see the formulas. Any cells that you want to enter data into will need to be unlocked prior to protecting the sheet. Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: macro to hide

    Hi,


    No macro required...


    1. Unprotect all of the cells on your sheet. CTRL & A. Right-click > Format Cells > Protection > Uncheck the "Locked" checkbox > OK

    2. Select the cells that you wish to hide the formulas for. Right-click > Format Cells > Protection > Check the "Hidden" checkbox > OK

    3. Protect the workbook. Tools > Protection Protect Sheet > Check the "Contents" checkbox OK.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: macro to hide

    hum...

    And a macro to fully protect the formulas, whit password?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: macro to hide

    I am unsure of what you want this macro to do. What Sweep and I have explained will do exactly what I believe you are asking for without the macro component. Why would you want a macro? A macro code would simply automate the couple of steps that we outlined. Is this a process that you have to retro fit into numerous spreadsheets?

    To Protect and Hide formulas/functions
    Select those cells, FORMAT CELLS> PROTECTION> check hidden > Ok
    Protect worksheet with password.
    If there are any cells or columns that you want to enter data into
    Select those cells, FORMAT CELLS> PROTECTION> uncheck locked > Ok

    Hope that helps.
    Last edited by ChemistB; 09-03-2010 at 11:38 AM.

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

    Re: macro to hide

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

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

    Free DataBaseForm example

  7. #7
    Forum Contributor
    Join Date
    08-10-2010
    Location
    Tavira, POrtugal
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: macro to hide

    Quote Originally Posted by ChemistB View Post
    I am unsure of what you want this macro to do. What Sweep and I have explained will do exactly what I believe you are asking for without the macro component. Why would you want a macro? A macro code would simply automate the couple of steps that we outlined. Is this a process that you have to retro fit into numerous spreadsheets?

    To Protect and Hide formulas/functions
    Select those cells, FORMAT CELLS> PROTECTION> check hidden > Ok
    Protect worksheet with password.
    If there are any cells or columns that you want to enter data into
    Select those cells, FORMAT CELLS> PROTECTION> uncheck locked > Ok

    Hope that helps.
    Hi ..

    yes, that I can do very well ... the probema can not, put password so smoothly. is it a small project at work. this is to have a macro to do the same, ie protect formulas ...

    understand.

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

    Re: hide formulas

    The only way a macro can do this is to apply the steps outlined above.

+ 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