R
Romanian37
All,
I've been modifying a set of macros to filter a data set and pu
resulting data in a number of different sheets. Each of these sheet
have a number of formulas in row 2 that I'm copying and pastespecial
formulas for the entire data set. This data is then copied an
pastespecial values done to save memory.
Even though the modifications were not made to the code below (all cod
changed is done after the code below), two errors seems to come up.
"Run time error : information cannot be pasted becasue copy and past
area are not the same size and shape" or
"Run time error 1004: PasteSpecial method of range failed"
I've tried a few things: Added cutcopymode = false to clear clipboar
(thought it could be memory?), also changed code from selecting on
cell (Cells(3, 19)) to selecting entire range again (see below)
There are a number of copies and pastes like this in the macros, whic
seems to work fine, also the original macro (without the addition o
filtering and copying and pasting to new sheets), seems to work fin
over identical code
I can't see the problem, unless its hardware??
Any help would be much appreciated.
Thanks
Will
Range(Cells(3, 19), Cells(MasterEnd, 19)).Select
Selection.PasteSpecial Paste:=xlFormulas
'Copies the resulting values
Range(Cells(3, 19), Cells(MasterEnd, 19)).Copy
'Pastes these values over the top of formulas
' ERROR APPEARS ON RUNNING LINE BELOW
Range(Cells(3, 19), Cells(MasterEnd, 19)).PasteSpecial Paste:=xlValues
Application.CutCopyMode = Fals
I've been modifying a set of macros to filter a data set and pu
resulting data in a number of different sheets. Each of these sheet
have a number of formulas in row 2 that I'm copying and pastespecial
formulas for the entire data set. This data is then copied an
pastespecial values done to save memory.
Even though the modifications were not made to the code below (all cod
changed is done after the code below), two errors seems to come up.
"Run time error : information cannot be pasted becasue copy and past
area are not the same size and shape" or
"Run time error 1004: PasteSpecial method of range failed"
I've tried a few things: Added cutcopymode = false to clear clipboar
(thought it could be memory?), also changed code from selecting on
cell (Cells(3, 19)) to selecting entire range again (see below)
There are a number of copies and pastes like this in the macros, whic
seems to work fine, also the original macro (without the addition o
filtering and copying and pasting to new sheets), seems to work fin
over identical code
I can't see the problem, unless its hardware??
Any help would be much appreciated.
Thanks
Will
Range(Cells(3, 19), Cells(MasterEnd, 19)).Select
Selection.PasteSpecial Paste:=xlFormulas
'Copies the resulting values
Range(Cells(3, 19), Cells(MasterEnd, 19)).Copy
'Pastes these values over the top of formulas
' ERROR APPEARS ON RUNNING LINE BELOW
Range(Cells(3, 19), Cells(MasterEnd, 19)).PasteSpecial Paste:=xlValues
Application.CutCopyMode = Fals