Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

R1C1 References using OLE2

Status
Not open for further replies.

krindler

Programmer
Jul 16, 2002
39
US
Hello...Can anyone help me figure out why the following Formula reference does not work? It does not put anything into the cell...

args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG ( args, v_can_ctr + 7 );
OLE2.ADD_ARG ( args, 10 );
cell := OLE2.GET_OBJ_PROPERTY ( worksheet, 'Cells', args );
OLE2.DESTROY_ARGLIST ( args );

OLE2.SET_PROPERTY(cell,'ForumulaR1C1','=(R[-5]C-R[-1]C)');
OLE2.SET_PROPERTY ( cell, 'NumberFormat', '$#,##0.00' );
font := OLE2.GET_OBJ_PROPERTY ( cell, 'font' );
OLE2.SET_PROPERTY ( font, 'bold', true );

OLE2.RELEASE_OBJ ( cell );

Any help anyone could give me would be much appreciated.

Thanks In Advance!!
 
I looks like FormulaR1C1 is misspelled.
 
Thank You soooo much...I must be having one of those days!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top