Hi,
i use this code to find the column number:
Then i need to put this integer in a formula as follows:For i = 2 To 13 If ws2.Cells(3, i).Value = prd Then Exit For Next
But it inserts as an interger not a letter i.e. 2 = Column 'B' and returns a object defined error.ws1.Cells(6, "G") = "=SUM(PF!B3:" & i & "3)"
how can i get around this?
Thanks,
Bookmarks