Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Worksheet Functions | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Discussion (Misc queries) | |||
Run time error 1004 | Excel Discussion (Misc queries) | |||
Run time error 1004, General ODBC error | New Users to Excel | |||
Run-time Error 1004, Please Help | Excel Programming |