Hello,
I've been trying to calculate a weighted average and weighted standard deviation in Excel 2007/Windows 7. Since there is no formula for it I looked for one on the web and found a UDF that I copied into a VB module. It worked and I got the result I was looking for. I saved the workbook as a macro-enabled workbook. I may have done some other things in the process that messed things up because...
When I next opened the workbook the results were no longer there, instead there was a #NAME error in each cell.
I checked and the modules were still there, and when I typed "=WtStd" the formula showed up in a drop down list. I tried deleting the modules and copying the code in again as a new module with no luck.
I'm brand new to working with VB and modules, so I imagine there may be something really obvious that I'm not doing. I thought maybe there was a way to have modules apply to some workbooks and not others that I missed, but I couldn't see anything to that effect.
Any help you can give me would be most appreciated.
Tom
I've been trying to calculate a weighted average and weighted standard deviation in Excel 2007/Windows 7. Since there is no formula for it I looked for one on the web and found a UDF that I copied into a VB module. It worked and I got the result I was looking for. I saved the workbook as a macro-enabled workbook. I may have done some other things in the process that messed things up because...
When I next opened the workbook the results were no longer there, instead there was a #NAME error in each cell.
I checked and the modules were still there, and when I typed "=WtStd" the formula showed up in a drop down list. I tried deleting the modules and copying the code in again as a new module with no luck.
I'm brand new to working with VB and modules, so I imagine there may be something really obvious that I'm not doing. I thought maybe there was a way to have modules apply to some workbooks and not others that I missed, but I couldn't see anything to that effect.
Any help you can give me would be most appreciated.
Tom