View Single Post
 2021-10-03, 03:42 #6 axn     Jun 2003 11×479 Posts Ok. So you need a .xslm file, where you insert a Module and define a public function. Code: Public Function Pminus1Probability(e as Long, tf as Integer, B1 as Long, B2 as Long) As Double and then put a formula in the cell as, for example, =Pminus1Probability(A1, B1, C1, D1)