ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   trying to get formula in cell (https://www.excelbanter.com/excel-programming/352542-trying-get-formula-cell.html)

[email protected]

trying to get formula in cell
 
Hi,

My call to xlfGetCell is consistently returning 2 (xlretInvXlfn). My
previous calls to excel4 work fine but not for xlfGetCell. Here is the
code

XLOPER xlFormula;
int diditwork;

XLOPER xCaller;
diditwork = Excel4(xlfCaller,&xCaller,0); // returns 0
diditwork = Excel4(xlfGetCell,&xlFormula,2,TempInt(41),&xCalle r); //
returns 2


Kind Regards,

Ray Gregoire



All times are GMT +1. The time now is 01:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com