+ Reply to Thread
Results 1 to 6 of 6

Hide a formula

  1. #1
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215

    Hide a formula

    Is it possible to hide a particular formula in a cell without protecting the worksheet?

    Thanks.

    -ep

  2. #2
    Alan.M
    Guest

    RE: Hide a formula

    Hi ep

    You can use a trick that I use some times:
    I put the formula in a cell that is way off to the side and then name the
    cell, eg: "MyFormula" Then where your user can see you set that cell =
    MyFormula.

    Alternatively, write a Function in VBA and then protect the Project.

    >
    > Is it possible to hide a particular formula in a cell without protecting
    > the worksheet?
    >
    > Thanks.
    >
    > -ep
    >
    >
    > --
    > edwardpestian
    > ------------------------------------------------------------------------
    > edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
    > View this thread: http://www.excelforum.com/showthread...hreadid=568604
    >
    >


  3. #3
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215
    I'd prefer to write a function in VBA. Can anyone point me in the right direction?

    Thx

    -ep

  4. #4
    Otto Moehrbach
    Guest

    Re: Hide a formula

    Ed
    What Alan is referring to is writing a User Defined Function or UDF.
    That function would do the work for you and return a value to that cell that
    holds the function. All that the user would see is the name of the function
    and its argument. As Alan said, you can then protect the code so that the
    user can't see it.
    But be aware that Excel is not a secure platform nor is it intended to
    be. Any kind of security measures you take can be over-ridden by anyone
    with sufficient Excel knowledge. HTH Otto
    "edwardpestian" <edwardpestian.2c2fyf_1154779506.5494@excelforum-nospam.com>
    wrote in message
    news:edwardpestian.2c2fyf_1154779506.5494@excelforum-nospam.com...
    >
    > I'd prefer to write a function in VBA. Can anyone point me in the right
    > direction?
    >
    > Thx
    >
    > -ep
    >
    >
    > --
    > edwardpestian
    > ------------------------------------------------------------------------
    > edwardpestian's Profile:
    > http://www.excelforum.com/member.php...o&userid=33809
    > View this thread: http://www.excelforum.com/showthread...hreadid=568604
    >




  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Not sure if this helps but you could try a named range.

    The link runs you through a simple example.

    http://www.cpearson.com/excel/named.htm

    VBA Noob

  6. #6
    Forum Contributor
    Join Date
    04-25-2006
    Posts
    215
    I think simply moving the formula to an inconspicuous place and defining the cell will suit the purpose.

    Thanks for the help..

    -ep

+ 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