Excel won't show the workbooks worksheets

冷暖自知 提交于 2019-12-08 19:09:01

问题


I have an Excel Workbook containing three worksheets. However all sheets seem to be hidden dispite that their visibility is set to xlSheetVisible (Found by looking at the worksheet properties in the VBA editor).

This is what I have tried so far to solve the problem.

  • Searched Google for help, but all similar problems have been solved by changing the Visibility from xlSheetHidden to xlSheetVisible. But in my case that setting is already set to xlVisible.

    • By using VBA I have tried to activate a sheet without any result.

By reading this you might have guessed that I am able to see and access the worksheets from the VBA editor.

Despite that looking at the normal Excel userinterface, all buttons are disabled and clicking at the office/file button in the topleft corner doesn't allow me to save the workbook. However if I make any changes to the VBA itself and tries to close the workbook then Excel asks whether or not I would like to save the workbook.


回答1:


Everything you describe leads me to believe you're hiding the workbook window, not the worksheets. When a workbook window is hidden, all the sheets become hidden and much of the functionality from the toolbar greys out.

In the Visual Basic Editor, you'd also be able to see all of the worksheets and their visibility would be xlVisible, yet they cannot be seen on the screen. This is because they ARE visible, but the window which displays them is not.

Please try clicking the View tab in the toolbar, and then under the Window pane, click Unhide.

If this doesn't work, then try toggling visibility of the workbook.




回答2:


It sounds like this may really be your problem...

http://vbadud.blogspot.co.uk/2010/08/hide-sheet-tabs-using-vba-hide-excel.html



来源:https://stackoverflow.com/questions/14691277/excel-wont-show-the-workbooks-worksheets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!