Error 57121

kstws810

New Member
Joined
Apr 10, 2011
Messages
10
I've searched and found no answers for this problem. I have seen this problem before on the msg board.

I get Run-time-error 57121 when opening Excel file, when setting the scrollarea.
Code:
Private Sub Workbook_Open()
'Set scroll area
Sheets("Records").ScrollArea = "$A$1:$AE$70"
End Sub

I made the file in Excel2007 and sent out to other person to fill in some data. Before sending out all was ok and no errors.
When file received back I get the error when opening.
Sheets is still there. Any ref to the sheet I get an error as if the sheets has been deleted.

What can be the problem? Can it be the Excel version the other person used to fill in the sheet?


rgds
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Thanks.

Before the code was working. But now any reference to this one sheet does not work anymore. Had a look at the link but the 'Wait' is not the answer.

Think it is the button I created on the sheet. During file conversion, to earlier Excel version, this corrupts the original code reference.
On the vba tools reference there are no missing links.

I think I have to change the ActiveX control Button on the sheet to a Form control to keep the file working.

Does this makes sense?
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,839
Members
452,948
Latest member
UsmanAli786

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