I have an excel workbook of +40Mb. Reason is several sheets that use formulas over a range of 30 columns and 20000 rows. I want VBA to calculate these cells in stead the 600000 formulas.
What I need is a VBA script to calculate to following: Column A row 2:
"=IFERROR(IF(MATCH(Sheet1!G3;Sheet2!K3:AE3;0);1;0);0)"
Column A row 3:
"=IFERROR(IF(MATCH(Sheet1!G3;Sheet2!K4:AE4;0);1;0);0)"
... Column A row 20000:
"=IFERROR(IF(MATCH(Sheet1!G3;Sheet2!K20001:AE20001;0);1;0);0)"
Column B row 2:
"=IFERROR(IF(MATCH(Sheet1!G4;Sheet2!K3:AE3;0);1;0);0)"
Column B row 3:
"=IFERROR(IF(MATCH(Sheet1!G4;Sheet2!K4:AE4;0);1;0);0)"
... Column B row 20000:
"=IFERROR(IF(MATCH(Sheet1!G4;Sheet2!K20001:AE20001;0);1;0);0)"
And so on for the other columns.
Can anyone help with this? I'm a newbie to VBA and have no clue where to start.
Many thanx in advance!