Error 1004

jackievdb

New Member
Joined
Jun 4, 2015
Messages
1
1) Excel workbook with over 50 worksheets.
2) Numerous copies of worksheets were made during creation of workbook.
3) Main Menu only worksheet that should be showing when file is open with hyperlinks to each worksheet which unhides the worksheet.
4) Each worksheet has hyperlink back to Main Menu and code to hide the worksheet when returning to Main Menu.
5) Did work fine on my computer, but not on other people's computers.
6) Found that an Active X to my Avaya (phone) online messages was the issue.
7) Unchecked this on my computer (ALT F11, Tools, References, unchecked box)
8) File worked for a colleague yesterday after completing #7.
9) Today I get the error below when I opened the file.

Run-time error '1004'
Unable to set the Visible property of the Worksheet class

Goal of workbook is to have all worksheets hidden and unhidden when link is clicked on the Main Menu. Need to send out to many people inside and outside of the company so differeing versions of Excel will be encounterred. Need workbook protected and only some cells unlocked for user's entry of information. File is quite large. VBA code used on some worksheets to reset unlocked cells. One sheet has hyperlinks to other worksheets and a button to hide rows that contain a 1 and unhide these rows.
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the Board!

Something* is happening in your Workbook_Open event code on the This_Workbook code page. Put Stop as the first line in that procedure. Save, close and open the file then then step through it to see what line causes the 1004 error (which is a generic error meaning Excel can't do that!).
What is the oldest version of Excel that the workbook could be opened with?

*Incredibly technical term!
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,986
Members
448,538
Latest member
alex78

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