I am pretty new to VBA and I am trying to run a script written by someone else on their PC running excel 2010 on my mac running excel 2011.
The line creating the error is: x = Application.WorksheetFunction.Norm_S_Dist(d1, True). The error received is Compile error: Method or data member not found
I have tried running it as x = Application.WorksheetFunction.Norm.S.Dist(d1, True) as it would be called if typing it into a cell in a worksheet but this gives the same error.
The last thing I tried is: x = Application.WorksheetFunction.NormSDist(d1, True). The error received is Compile error: Wrong number of arguments or invalid property assignment.
Any idea how to get this command to work on a mac? I am not sure if it matters, but the mac is running OS X, 10.8.4.
Thank you very much for your help.
The line creating the error is: x = Application.WorksheetFunction.Norm_S_Dist(d1, True). The error received is Compile error: Method or data member not found
I have tried running it as x = Application.WorksheetFunction.Norm.S.Dist(d1, True) as it would be called if typing it into a cell in a worksheet but this gives the same error.
The last thing I tried is: x = Application.WorksheetFunction.NormSDist(d1, True). The error received is Compile error: Wrong number of arguments or invalid property assignment.
Any idea how to get this command to work on a mac? I am not sure if it matters, but the mac is running OS X, 10.8.4.
Thank you very much for your help.