I have the following the following macro:
Range("C1"
.Select
Selection.FormulaArray = _
"=SUM(IF([Original.xls]Poland!R23C3:R264C3=R[1]C[-2],1,0))"
Selection.Cut Destination:=Range("C2"
Range("C2"
.Select
Selection.AutoFill Destination:=Range("C2:C93"
, Type:=xlFillDefault
Range("C2:C93"
.Select
End Sub
and basically i want to do it for all my sheets (sheets are the country names) is there a way to tell it to do it and to put the results in the columns next to each other. So next one would be in Column D etc.
Range("C1"
Selection.FormulaArray = _
"=SUM(IF([Original.xls]Poland!R23C3:R264C3=R[1]C[-2],1,0))"
Selection.Cut Destination:=Range("C2"
Range("C2"
Selection.AutoFill Destination:=Range("C2:C93"
Range("C2:C93"
End Sub
and basically i want to do it for all my sheets (sheets are the country names) is there a way to tell it to do it and to put the results in the columns next to each other. So next one would be in Column D etc.