Hi,
A very stupid but annoying question. I am just copying a cell to another. But it works only when Sheet1 was the active one, or an error happens. I didn't get it. Did I type in something wrong? Thanks in advance.
Sub test()
For xx = 1 To 5
Workbooks("Circular v2.xlsx").Sheets("Sheet1").Range(Cells((1 + xx), 1), Cells((1 + xx), 1)).Copy _
Workbooks("Circular v2.xlsx").Sheets("Sheet2").Range("F20")
Next xx
End Sub
A very stupid but annoying question. I am just copying a cell to another. But it works only when Sheet1 was the active one, or an error happens. I didn't get it. Did I type in something wrong? Thanks in advance.
Sub test()
For xx = 1 To 5
Workbooks("Circular v2.xlsx").Sheets("Sheet1").Range(Cells((1 + xx), 1), Cells((1 + xx), 1)).Copy _
Workbooks("Circular v2.xlsx").Sheets("Sheet2").Range("F20")
Next xx
End Sub