热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Excel不会显示工作簿工作表-Excelwon'tshowtheworkbooksworksheets

IhaveanExcelWorkbookcontainingthreeworksheets.Howeverallsheetsseemtobehiddendispitet

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).

我有一个包含三个工作表的Excel工作簿。但是,所有工作表似乎都是隐藏的,因为它们的可见性设置为xlSheetVisible(通过查看VBA编辑器中的工作表属性找到)。

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.

    搜索了谷歌寻求帮助,但通过将可见性从xlSheetHidden更改为xlSheetVisible,解决了所有类似的问题。但在我的情况下,设置已设置为xlVisible。

    • By using VBA I have tried to activate a sheet without any result.
    • 通过使用VBA,我试图激活一张没有任何结果的工作表。

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

通过阅读本文,您可能已经猜到我能够从VBA编辑器中查看和访问工作表。

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.

尽管查看了普通的Excel用户界面,但所有按钮都被禁用,并且单击topleft角落中的office / file按钮不允许我保存工作簿。但是,如果我对VBA本身进行任何更改并尝试关闭工作簿,则Excel会询问是否要保存工作簿。

2 个解决方案

#1


7  

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.

在Visual Basic编辑器中,您还可以看到所有工作表,它们的可见性将是xlVisible,但它们无法在屏幕上看到。这是因为它们是可见的,但显示它们的窗口不是。

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

请尝试单击工具栏中的“视图”选项卡,然后在“窗口”窗格下单击“取消隐藏”。

enter image description here

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

如果这不起作用,请尝试切换工作簿的可见性。

#2


0  

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

听起来这可能真的是你的问题......

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

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


推荐阅读
author-avatar
卖女孩的小方子
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有