Looking to fix code to help with a problem. I have 200 worksheets and I want to put certain info from each cell in a column to a specific cell in the worksheets.
I keep getting a bug at Sheets(i).Range("C4") = c.Value because it is out of range. It also seems to grab a row info and not a column.
Please help guys. Thank you.
▬▬▬▬▬▬▬▬▬ Mod edit : thread moved to appropriate forum !
Code:
Sub t()
Dim c As Range, i As Long
i = 1
For Each c In Sheets(1).Range("A1", Sheets(1).Cells(Rows.Count, 1).End(xlUp))
i = i + 1
Sheets(i).Range("C4") = c.Value
Next
End Sub
I keep getting a bug at Sheets(i).Range("C4") = c.Value because it is out of range. It also seems to grab a row info and not a column.
Please help guys. Thank you.
▬▬▬▬▬▬▬▬▬ Mod edit : thread moved to appropriate forum !