|
-
Jun 30th, 2006, 05:02 AM
#1
Thread Starter
Frenzied Member
permut and combin functions
Hello
I was trying to use the permut and combin functions (which are available in excel) in vba, but i keep on getting the error
"Compile error:
Sub or Function not defined" when using the functions in vba.
is there a library that i need to import in order to get permut and combin to work?
-
Jun 30th, 2006, 06:23 AM
#2
Re: permut and combin functions
I just opened up an new Excel workbook, put =PERMUT(A2,A3) in cell D1, popped some numbers in A2 and A3 and it worked just fine for me.
What version of Excel are you using?
-
Jun 30th, 2006, 06:26 AM
#3
Re: permut and combin functions
Hack :
Hes using VBA to call the functions in Excel.
vb_s:
How are you trying to use them atm?
Edit:
Code:
?application.Evaluate("permut(5,2)")
20
(using the immediates window)
Last edited by Ecniv; Jun 30th, 2006 at 06:31 AM.
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Jun 30th, 2006, 09:43 AM
#4
Re: permut and combin functions
Can you post the code you are using to call the functions?
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Jul 1st, 2006, 04:09 PM
#5
Thread Starter
Frenzied Member
Re: permut and combin functions
thanks for the replies guys
i did
myvalue = permut(5,2)
and it gave the error
"Compile error:
Sub or Function not defined" when using the functions in vba.
hey ecniv, what is the
application.Evaluate command in your code?
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
|