Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
number,x, from cell A3 and a positive integer, n, from cell B3 then
returns into cell C3 the value of x raised to the power n divided by n factorial. where x in cell a3 = 2 and n in cell b3 = 5 im using this formula, but when i run it nothing happens, how do i make this vba programme run and return the value? how do i delcare x and n variables intot his workign vba code so that the vba can run, im not sure how to declre them, how you do it. thanks this is the vba programme: Public Function MyFunction(X As Double, N As Long) As Variant If (N <= 0&) _ Then MyFunction = "N must be an integer greater than zero" Else MyFunction = (X ^ N) / WorksheetFunction.Fact(N) End If End Function how do i delare these |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
RUNNING Avg - how? | Excel Discussion (Misc queries) | |||
Running an Add-In on the fly | Excel Programming | |||
Running Ontime's procedure while another function is running? | Excel Programming | |||
Name of running sub??? | Excel Programming | |||
running a sub | Excel Programming |