Opening an Excel workbook that was downloaded from the Interent causes runtime error

ACharmedQuark

New Member
Joined
Mar 28, 2016
Messages
1
I have a very simple Excel workbook that must be sent via email to hundreds of people. A requirement is this workbook must open to the "Home" sheet every time the user opens it. So, I used the ThisWorkbook Open method to accomplish this. It works fine locally, but when users download and open the workbook, they get a runtime error when the hit enable editing. The error occurs when I select the Home sheet. Below is the only code in the entire workbook, which is in ThisWorkbook open method.

Private Sub Workbook_Open()
Worksheets("Home").Select
End Sub

The error is object cannot be initialized when it hits Worksheets("Home").Select. If the user hits end on the runtime error, the worksheet will continue to open. However, management says this in unacceptable and must be resolved.

Any ideas?

Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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