Results 1 to 5 of 5

Thread: [RESOLVED] SIN function

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2008
    Posts
    250

    Resolved [RESOLVED] SIN function

    Hello!

    By trying to develope one very complex worksheet calculation, i have learned a bit of VB and now i'm thinking in a whole new level to create excell functions easier.

    I have created "SINUS" function (see code below). I renamed it to SIN, but excell would use the original sin function. Can I redefine the original one to mine or remove it?

    Code:
    Function SINUS(ByVal Value As Integer)
        br = "=SIN(RADIANS(" & Value & "))"
        SINUS = Evaluate(br)
    End Function
    Last edited by Raivis; Aug 22nd, 2008 at 09:25 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: SIN function

    Quote Originally Posted by Raivis
    Can I redefine the original one to mine or remove it?
    Not without rewriting Excel and I doubt if Microsoft is going to give you their source code.

    Even if you had it, it would only apply to the Excel installed on your machine.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2008
    Posts
    250

    Re: SIN function

    So I also can't redefine original SIN function to SINUS function, and rename my function to SIN function, so formula would be shorter?!

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: SIN function

    In a word, No...

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2008
    Posts
    250

    Re: [RESOLVED] SIN function

    Thanx for help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width