A
alberto via OfficeKB.com
What I want to do is :
to put a Formula into a Cell in running time
'KK is the index from the Sheet1
'FacInd other Sheet
'Sheet2 where the Cell Formula I want to put
KK = i + 2
Worksheets("Sheet2").Cells(iRow, 5).Formula = "=(Sheet1!$(KK,4) * FacInd!$E47
* FacInd!$E93)"
but this part (Sheet1!$(KK,4) does not works
I dont know if the syntaxes is correct? Because send a error (application-
defined or object defined error ) some thing like that.
also I have tried with a ListBox :
Worksheets("Sheet2").Cells(iRow, 5).Formula = "=(Sheet1!$(KK,4) * FacInd!$E47
* FacInd!$E93)"
just to mention as value I can get into the cell but as Formula I can not
Please I need Help to solve this
Alberto
to put a Formula into a Cell in running time
'KK is the index from the Sheet1
'FacInd other Sheet
'Sheet2 where the Cell Formula I want to put
KK = i + 2
Worksheets("Sheet2").Cells(iRow, 5).Formula = "=(Sheet1!$(KK,4) * FacInd!$E47
* FacInd!$E93)"
but this part (Sheet1!$(KK,4) does not works
I dont know if the syntaxes is correct? Because send a error (application-
defined or object defined error ) some thing like that.
also I have tried with a ListBox :
Worksheets("Sheet2").Cells(iRow, 5).Formula = "=(Sheet1!$(KK,4) * FacInd!$E47
* FacInd!$E93)"
just to mention as value I can get into the cell but as Formula I can not
Please I need Help to solve this
Alberto