Hi,
I am trying to create a loop that will add automatic referencing. This is a sample formula that I would enter in the regular Excel "='Ant (AUC)'!B4/'Ant (peaks)'!B4" . How can I automate this for a series of rows and columns in Excel Macros?I tried the following code with no luck.
For j = 2 To 16
For i = 1 To 4
b = i + Row_No
area = Worksheets("Ant (AUC)").Range(j & b).Value
peak = Worksheets("Ant (peaks)").Range(j & b).Value
Range(j & b) = area / peak
Next i
Next j
I am trying to create a loop that will add automatic referencing. This is a sample formula that I would enter in the regular Excel "='Ant (AUC)'!B4/'Ant (peaks)'!B4" . How can I automate this for a series of rows and columns in Excel Macros?I tried the following code with no luck.
For j = 2 To 16
For i = 1 To 4
b = i + Row_No
area = Worksheets("Ant (AUC)").Range(j & b).Value
peak = Worksheets("Ant (peaks)").Range(j & b).Value
Range(j & b) = area / peak
Next i
Next j