I am using excel 2000 I am trying to create a macro using the
macro recorder.
I want to swap the contents of the cells in range E63:BM64 with E61:BM62
(the contents of the cells in E63:BM64 are pasted into E61:BM62
and content of the cells in E61:BM62 are pasted into E63a:BM64)
and then I swap the contents of the cells in range F4:G64 with H4:I64
Here are my exact steps:
Before I start recording I put the clipboard in view so I can select
from it then I start recording.
I copied E63:BM64 then I copied E61:BM62
I then pasted E63:BM64 at cell E61
I then pasted E61:BM62 at cell E63
I cleared the clipboard
I copied F4:G64 then I copied H4:I64
I then pasted F4:G64 at cell H4
I then pasted H4:I64 at cell F4
I cleared the clipboard
I stopped the recorder
When I run the macro I get.. run-time error'1004':Paste method of worksheet class failed
I thought the problem might stem from the fact that I used the clipboard
viewer , so I tried this:
I copied E63:BM64
I pasted to an unused area of the wooksheet
I copied E61:BM62
I pasted to E63
I copied E63:BM64 from the unused area of the worksheet that i moved it to
I pasted to E61
I copied F4:G64
I pasted to an unused area of the wooksheet
I copied H4:I64
I pasted to F4
I copied F4:G64 from the unused area of the worksheet that i moved it to
I pasted to H4
I stopped the recorder and the ran the macro and got the same error '1004'
Please take an attempt at trying to make this work. I appreciate the help.
macro recorder.
I want to swap the contents of the cells in range E63:BM64 with E61:BM62
(the contents of the cells in E63:BM64 are pasted into E61:BM62
and content of the cells in E61:BM62 are pasted into E63a:BM64)
and then I swap the contents of the cells in range F4:G64 with H4:I64
Here are my exact steps:
Before I start recording I put the clipboard in view so I can select
from it then I start recording.
I copied E63:BM64 then I copied E61:BM62
I then pasted E63:BM64 at cell E61
I then pasted E61:BM62 at cell E63
I cleared the clipboard
I copied F4:G64 then I copied H4:I64
I then pasted F4:G64 at cell H4
I then pasted H4:I64 at cell F4
I cleared the clipboard
I stopped the recorder
When I run the macro I get.. run-time error'1004':Paste method of worksheet class failed
I thought the problem might stem from the fact that I used the clipboard
viewer , so I tried this:
I copied E63:BM64
I pasted to an unused area of the wooksheet
I copied E61:BM62
I pasted to E63
I copied E63:BM64 from the unused area of the worksheet that i moved it to
I pasted to E61
I copied F4:G64
I pasted to an unused area of the wooksheet
I copied H4:I64
I pasted to F4
I copied F4:G64 from the unused area of the worksheet that i moved it to
I pasted to H4
I stopped the recorder and the ran the macro and got the same error '1004'
Please take an attempt at trying to make this work. I appreciate the help.