ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macro error after switching from Excel 2000 to Excel 2003 (https://www.excelbanter.com/excel-discussion-misc-queries/64267-macro-error-after-switching-excel-2000-excel-2003-a.html)

Jake Burnham

Macro error after switching from Excel 2000 to Excel 2003
 
My company recently switched from Excel 2000 to Excel 2003 and now a macro I
created does not work. It gives me the error 1004 and highlights the line of
code where I set it up to open certain files in a folder. This macro has
been working for 6 months without fail and only has problems opening the
Excel files I created after the switch to 2003. Any help would be
appreciated.

vezerid

Macro error after switching from Excel 2000 to Excel 2003
 
Without any other info the only suggestion is to see if your sheets
have different names.
For example, a statement like:

Sheets("Feb Sales").Cells(i, j+5) = k

might cause a 1004 error if the new workbook does not have a sheet with
this name. Otherwise you need to post the code.

HTH
Kostis Vezerides



All times are GMT +1. The time now is 07:26 AM.

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