Receiving runtime error 1004: Application defined or Object defined error

rkb1510

New Member
Joined
Oct 24, 2024
Messages
12
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I am receiving Runtime Error 1004 for following line in VBA code containing formula. How can I resolve or what will be remedy for that.

ActiveCell.FormulaR1C1 = "=INDEX([Test_Table.csv]obj_1_Table!$F:$F,MATCH(RC[3],[Test_Table.csv]obj_1_Table!$A:$A,0))"
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You are mixing A1 and R1C1 references, manually type your formula in the cell, turn on the macro recorder, delete the last closing parentheses and then type the parentheses back in and then turn off the macro recorder.
It will give you the correct formula in R1C1 style.
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,041
Members
453,521
Latest member
Chris_Hed

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