Hi, I am developing a customised spreadsheet, with VBA running various calculations, filters etc.
One sub is handling copying various information from the main sheet to specific other sheets, and for this I am trying to use:
sheets(1).range(“A2:m2”).copy sheets(2).range(“A2:m2”)
this works fine in a blank workbook, but is throwing errors in the workbook i am developing.
I have already completely rebuilt the workbook from scratch as I thought it may be corrupted, but the same error occurs.
If you try this operation in the debug window of the attahced sheet then it throws an automation error.
Any ideas? I was using sheets(2).range() = sheets(1).range and that was working fine, but i want to copy to preserve the formatting.