Share via

runtime error 57121

Anonymous
2012-03-27T17:55:56+00:00

I am suddenly facing this problem: i have a excel file with (quite a lot) of embedded VB code and activeX.

It works fine under Office 2010 on a PC running Windows XP SP3.

Yesterday the office automation team migrated my PC under Windows 7 (and re-installed Office 2010) and now i got errors when i open my excel file.

I investigated and googled but nothing clear to me.

When i go to the VBA editor the statement : Worksheets.count return 14

Then i sequencially do display Worksheets(i).name with i changing from 1 to 14.

For the values 3 and 6 i get a message "runtime error 57121: Application-defined or object-defined error"

The same thing done on a Windows XP PC with same Office 2010 installed does no error at all

Any idea to help ?

Thanks bunches

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2012-03-28T10:01:56+00:00

    Check the references in the VBA editor for broken links.

    If this doesn't help, upload the file on a online file hoster like www.dropbox.com and post the download link here. (The data in te sheets can be removed if necessary, that doesn't matter in this case.)

    Andreas.

    Was this answer helpful?

    0 comments No comments