Code Error Copy Formula Application-defined or object-define

nehpets12

Active Member
Joined
Feb 22, 2002
Messages
453
Why does this produce a Application-defined or object-defined error



Code:
Sub Macro6()
'
' Macro6 Macro

'
    Range("H4").Select
    Application.CutCopyMode = False
    ActiveCell.FormulaR1C1 = _
        "=ISERROR(EDATE(INDEX('[Despatch Draft.xls]Req H 04-11-05'!R1C2:R136C3,MATCH(R3C,'[Despatch Draft.xls]Req H 04-11-05'!R1C3:R136C3,0),1),-2))?""not in plan"" EDATE '[Despatch Draft.xls]Req H 04-11-05'!R1C2:R136C3 R3C '[Despatch Draft.xls]Req H 04-11-05'!"
    Range("H4").Select
End Sub
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
There is an error in the formula. To get the right code, turn on the macro recorder, enter the formula you want, then turn off the recorder.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,998
Messages
5,834,802
Members
430,322
Latest member
excelnoobnoob

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
Top