Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I need to write in a cell the following formula.
Consider Excel in italian language:
SCARTO is OFFSET
INDICE is INDEX
CONFRONTA is MATCH
Error on the last line:
Any ideas?
I need to write in a cell the following formula.
Consider Excel in italian language:
SCARTO is OFFSET
INDICE is INDEX
CONFRONTA is MATCH
VBA Code:
dim calculate as string
calculate = "=SCARTO(INDICE('Sheet1'!" & ccode.Address & ";CONFRONTA('Sheet2'!" & z & ";'Sheet1'!A:A;0);CONFRONTA('Sheet2'!" & ColumnLetter & "4;'Sheet1'!1:1;0));0;1)"
Sheets("Sheet10").Cells(ro, col).Formula = calculate
Error on the last line:
VBA Code:
VBA Runtime Error 1004 Application-defined or Object
Any ideas?