I'm in trouble all tabs missing, ribbon greyed out

szita2000

Board Regular
Joined
Apr 25, 2012
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hv6RuWJ
Hi Guys.

I am in major trouble.

This morning one of the files I made seems to be broken.

When I load the file (xlsm) with or without macros enabled, All the tabs are missing and the whole ribbon is greyed out.
When I go to the VBA editor, I can see the worksheets, the modules and all.
Naturally I tried to right click on the worksheet, and select view Object but it is greyed out.
When I try to enter a Sheet1.visible = true the vba editor throws an object missing error.

What to do?

PS: I was messing with a before close event last night on the same file as a Powerpoint presentation will be linked to the workbook which will require to leave a specific worksheet active on close (So the powerpoint link pulls in the given page with the data)

I couldn't post a picture here, but I uploaded one to here: https://imgur.com/a/Hv6RuWJ
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

szita2000

Board Regular
Joined
Apr 25, 2012
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Some more info. I am probing the workbook in the immediate window, with ?Activeworkbook.name, ?Activewindow.visible and both throws an object error.
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,601
Office Version
  1. 365
Platform
  1. Windows
Try running this in the immediate window:

Code:
ThisWorkbook.Windows(1).Visible = True
 

szita2000

Board Regular
Joined
Apr 25, 2012
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hi Steve.
Tried that already.

Unfortunately nothing helped.
I had to get IT to grab me a saved copy of the file before it got damaged.

Thanks very much for the help though!
 

Forum statistics

Threads
1,141,312
Messages
5,705,682
Members
421,406
Latest member
kluna90

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
Top