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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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