I've written a simple formula (below, i don't have excel 2013 with the =formulatext function) on a tab in a standalone model which i then need to drop into a large number of other models. The formula is written on the worksheet in the standalone model (not a module) and it works in the standalone model. However, when I copy the tab into a 2nd, larger workbook, the formula ceases to work and i get a #NAME error as the 2nd, larger workbook isn't recognizing the formula even though when i open VB, i can see the copied tab with the getformulatext function below.
Any ideas why the 2nd, larger workbook isn't recognizing the formula on the tab that has been copied in?
Code:
Function GetFormulaText(myCell As Range)
GetFormulaText = myCell.Formula
End Function
Any ideas why the 2nd, larger workbook isn't recognizing the formula on the tab that has been copied in?