ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   run time error 1004 (https://www.excelbanter.com/excel-programming/300422-run-time-error-1004-a.html)

MEAGAIN

run time error 1004
 
I was told the following about a macro I built: If you build a large portion of your macros with the macro recorder in a newer version of Excel, then the code will use the "new" arguments which will cause problems in older versions. I was getting a run-time error 1004, when the file was opened in an older version of Excel. Is there a solution to change this file so it will work with older versions when opened

Thank


Chip Pearson

run time error 1004
 
You need to manually change the offending code so that it will
work in earlier versions. There is no way to record a macro to
produce code guaranteed to be compatible with earlier versions.
Also, there is no way to automatically change code to be
compatible with earlier versions. It is strictly a manual
process.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"meagain" wrote in message
...
I was told the following about a macro I built: If you build

a large portion of your macros with the macro recorder in a newer
version of Excel, then the code will use the "new" arguments
which will cause problems in older versions. I was getting a
run-time error 1004, when the file was opened in an older version
of Excel. Is there a solution to change this file so it will work
with older versions when opened?

Thanks




MEAGAIN

run time error 1004
 
Thanks, but Im not sure what you mean by manually change the offending code

Thanks

Chip Pearson

run time error 1004
 
You have to go in to the recorded code and change the code so
that it will work with earlier versions. You must do it yourself;
there is no automatic way to do this.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"meagain" wrote in message
...
Thanks, but Im not sure what you mean by manually change the

offending code?

Thanks




MEAGAIN

run time error 1004
 
Are you saying I go into the code a type the same thing in as is there and erase the old?

Chip Pearson

run time error 1004
 
No. If you have recorded code that works in Excel 2002, for
example, but not in Excel 2000 or another earlier version, you
need to modify the Excel 2002 code so that it will run in the
earlier version.



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"meagain" wrote in message
...
Are you saying I go into the code a type the same thing in as

is there and erase the old?




All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com