ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2002 Workbooks.Open failed. (https://www.excelbanter.com/excel-programming/332403-excel-2002-workbooks-open-failed.html)

[email protected]

Excel 2002 Workbooks.Open failed.
 

I had a macro that worked just fine in 97. Then I went to Excel 2002.

When I run the same macro, the commanded Workbooks.Open failed. The
exact error is :

Run-time error '1004':

Method 'Open' of object 'Workbooks' failed

What is going on! Even when I record a key stroke macro, and I run the
recorded macro, it fails. That is just wonderful. If I open a
spreadsheet manually, it works. But, if I run a recorded macro. It does
not work.


Tom Ogilvy

Excel 2002 Workbooks.Open failed.
 
Are macros enabled? If security is set to high, macros are silently
disabled.

--
Regards,
Tom Ogilvy


wrote in message
oups.com...

I had a macro that worked just fine in 97. Then I went to Excel 2002.

When I run the same macro, the commanded Workbooks.Open failed. The
exact error is :

Run-time error '1004':

Method 'Open' of object 'Workbooks' failed

What is going on! Even when I record a key stroke macro, and I run the
recorded macro, it fails. That is just wonderful. If I open a
spreadsheet manually, it works. But, if I run a recorded macro. It does
not work.




Dave Peterson[_5_]

Excel 2002 Workbooks.Open failed.
 
You may want to post the code and indicate the offending line.



wrote:

I had a macro that worked just fine in 97. Then I went to Excel 2002.

When I run the same macro, the commanded Workbooks.Open failed. The
exact error is :

Run-time error '1004':

Method 'Open' of object 'Workbooks' failed

What is going on! Even when I record a key stroke macro, and I run the
recorded macro, it fails. That is just wonderful. If I open a
spreadsheet manually, it works. But, if I run a recorded macro. It does
not work.


--

Dave Peterson


All times are GMT +1. The time now is 10:55 PM.

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