Excel 2010 VBA Application-defined or object-defined error

tbello

New Member
Joined
Mar 30, 2011
Messages
4
I recently upgraded from Excel 2003 to 2010. I have a macro I ran on a regular basis in an Excel 2003 file. When I converted the file to 2010 and ran the macro, I got an "Application-defined or object-defined error" when the macro tried to enter the following forumla:

Range("R1").FormulaR1C1 = "=VLOOKUP(RC17,'[Aged FG Tracking Report.xlsm]Zero Sales Value'!C4,1,FALSE)"

The only thing I changed was the extension on the file from ".xls" to ".xlsm". I cannot fix it. I even manually entered the formula into Excel and it was fine. I tried to copy and paste it back into the VBA and it still gave me the error.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,224,613
Messages
6,179,896
Members
452,948
Latest member
Dupuhini

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