Excel Macro not working with excel 2010

vijay2482

Board Regular
Joined
Mar 3, 2009
Messages
142
Hi all,

I have a excel macro written in excel 2003.
This macro is run from my vb.net application.
The macro runs successfully on excel 2003 & 2007 but with excel 2010, I get the below error message:
Execution error:1004
No corresponding cells.

Not sure why this is happening...
Any suggestion, advic,solution will be helpful.

Thanks in advance.
 
There isn't a solution (other than exiting the procedure) if no visible cells are present.

Are you sure that you are using the same workbook in both versions of Excel? What I did is copy your data and macro into a new workbook and saved it as an xlsm workbook in Excel 2007. I ran the macro in Excel 2007 with no problems. I closed the workbook without saving and opened it in Excel 2010. When I ran the macro there were no errors.
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Mr. Andrew,

Sorry to disturb you.
Can you save the file as xls(2003) and run the macro in 2010 to find if an error is produced.

Thanks for any help.
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,172
Members
452,893
Latest member
denay

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