I want insert a Formula in word document,
try follow code:
wordDoc.Tables. Item(10).Cell(i +n, 2).Range.Select ();
Object o1 = "=SUM(ABOVE )";
o2 = Type.Missing;
wordApp.Selecti on.InsertFormul a(ref o1,ref o1);
but Word output the code is "{=SUM(ABOV E) \# "=SUM(ABOVE )"}"
so the Formula can't compute ,
why, the code is ok in VB.NET or VB 6
thanks
try follow code:
wordDoc.Tables. Item(10).Cell(i +n, 2).Range.Select ();
Object o1 = "=SUM(ABOVE )";
o2 = Type.Missing;
wordApp.Selecti on.InsertFormul a(ref o1,ref o1);
but Word output the code is "{=SUM(ABOV E) \# "=SUM(ABOVE )"}"
so the Formula can't compute ,
why, the code is ok in VB.NET or VB 6
thanks
Comment