run-time error '1004' copy area and paste area are not the same size

mharwell

New Member
Joined
Sep 20, 2017
Messages
1
i have the below code that has been working fine until today and can not figure out why any insight is appreciated

Windows("CMT6 Master.xlsm").Activate
Sheets("PRESALE LOANS - FNMA").Select
Workbooks.Open Filename:= _
"\\Fs1prod\cmt6\-- DAILY REPORTING --\Team - Daily Review\JENNIFER.xlsx" _
, ReadOnly:=True
Sheets("Pre-sale").Select
ActiveSheet.Outline.ShowLevels RowLevels:=0, ColumnLevels:=2
If ActiveSheet.FilterMode Then ActiveSheet.ShowAllData
Range("A2").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy
Windows("CMT6 Master.xlsm").Activate
Cells(Rows.Count, 3).End(xlUp).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, OPERATION:=xlNone, SKIPBLANKS _
:=False, Transpose:=False
Windows("JENNIFER.xlsx").Activate
Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
Windows("CMT6 Master.xlsm").Activate
Sheets("PRESALE LOANS - FNMA").Select
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top