I'm doing a macro that copies the selection in the currently active worksheet and pastes it in another, with transpose. I've seen questions relating to similar issues, but all seem to be much more complex, whereas this question seems simple (and baffling) to me.
The following code works (without transpose):
Sub sbCopyRangeToAnotherSheet2()
Selection.Copy
Sheets("snippets").Activate
ActiveSheet.PasteSpecial
End Sub
The following code throws a
1004 error - application-defined or object-defined error
(only change: added transpose):
Sub sbCopyRangeToAnotherSheet2()
Selection.Copy
Sheets("snippets").Activate
ActiveSheet.PasteSpecial transpose:=true
End Sub