HELP: Excel 2010 macro won't function in Excel 2016 :(

salvadope

New Member
Joined
Aug 29, 2017
Messages
1
Hi,

An Excel macro developed in the 2010 build of Excel will not work in the 2016 version. Is this a frequent issue? I get this error message:

Run-time error '9':

Subscript out of range

I can see two ways of fixing this:

1) Recoding the macro so that it works in 2016;

or 2) To open Excel 2016 in some sort of backwards compatibility mode so that the 2010 file works.

I'll attach the file in question here Uploadfiles.io - MapaRitmoRedkenS.xlsm. It's written in Portuguese and the relevant macro is the one present in the sheet "MapaRitmo"

Thanks for your help!



USapWgK
USapWgK
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
This error also occurs when a specified worksheet does not exist.
Check all the worksheets you are using actually exist, in particular the fil on the W: drive which of course we can't open
 
Upvote 0
Welcome to the MrExcel board!

My guess is that as well as a new Excel version you also have a new Windows version, or have changed the settings in Windows Explorer and that the error is in a line like this
Code:
Workbooks("MapaRitmoRedken.xlsm").Activate

If, in Windows Explorer you now have the setting to not show the file name extensions, that line will error with the error message you report. Have a look in Windows Explorer 'View' tab and 'File Name Extensions' checkbox. If it is not checked, then check it and try your macro again.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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