Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems with some formulas in Excel OLE2 Object

Former Member
0 Likes
720

Hi experts,

I need to write the several formulas inside some cells in Excel. Simple arithmetic like "=X1$Y$1" works fine, but i got fail with some built-in excel function. When i try to write formula which contains "ROUND" (f.e. "=ROUND(X1Y2;2)") or "VLOOKUP" (f.e. VLOOKUP(U9;W:Y;3;FALSE)) functions i receive SY-SUBRC = 3, and then cell is empty. But for example "=SUM(X1:X100)" works without any problem.

I use SET PROPERTY OF g_cell 'Formula' = form. I use Excel 2010.

What is the problem?

Thanks in advance.

Edited by: Vl89gm on Sep 29, 2011 7:30 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
565

are you using semi colons between your parameters in the formula, rather than commas?

Hi experts,

I need to write the several formulas inside some cells in Excel. Simple arithmetic like "=X1$Y$1" works fine, but i got fail with some built-in excel function. When i try to write formula which contains "ROUND" (f.e. "=ROUND(X1Y2;2)") or "VLOOKUP" (f.e. VLOOKUP(U9;W:Y;3;FALSE)) functions i receive SY-SUBRC = 3, and then cell is empty. But for example "=SUM(X1:X100)" works without any problem.

I use SET PROPERTY OF g_cell 'Formula' = form. I use Excel 2010.

What is the problem?

Thanks in advance.

Edited by: Vl89gm on Sep 29, 2011 7:30 PM

2 REPLIES 2
Read only

Former Member
0 Likes
566

are you using semi colons between your parameters in the formula, rather than commas?

Read only

0 Likes
565

You are genius. I changed ";" to "," in formulas and it works. Great thanks.