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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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