Returns the contents of a cell as they would appear in the formula bar
static int GetFormulaW( CStringW& strformula, const CXlOper& reference );
A reference to a string that will contain the desired data if the function succeeds.
Reference is a cell or range of cells on a sheet or macro sheet.
Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.
See the Microsoft Excel on-line Help for full details about this function.