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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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.
 
Upvote 0

Forum statistics

Threads
1,215,548
Messages
6,125,464
Members
449,229
Latest member
doherty22

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