|
-
Aug 22nd, 2008, 09:22 AM
#1
Thread Starter
Addicted Member
[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.
-
Aug 22nd, 2008, 09:47 AM
#2
Re: SIN function
 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.
-
Aug 22nd, 2008, 10:26 AM
#3
Thread Starter
Addicted Member
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?!
-
Aug 22nd, 2008, 11:31 AM
#4
-
Aug 22nd, 2008, 11:33 AM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|