I am not quite good at VBA programming. I need VBA to make an iteration of very simple action on every sheet; I have written the code to obtain this iteration, however whenever I run it, it says:
"Compile Error: Method or data member not found"
and it highlights the first line: Sub Macro1 ()
What did I make wrong?
Sub Macro1()
Dim ws As Worksheet
    For Each ws In Worksheets
        With ws
            .Activate
            .Application.Goto Reference:="R1C1"
            .Application.Goto Reference:="R10C3"
            .Range(Selection, Selection.End(xlDown)).Select
            .Range(Selection, Selection.End(xlToRight)).Select
            .Selection.Copy
            .Application.Goto Reference:="R10C12"
            .ActiveSheet.Paste
        End With
    Next ws
End Sub
 
     
    