在Excel中创建目录

In an Excel file with lots of worksheets, how do you help users navigate through the workbook? Here are a few of the methods I've used. I'm sure you've found your own creative ways to deal with the problem, and I'd be interested in hearing about them.

在包含大量工作表的Excel文件中,您如何帮助用户浏览工作簿? 这是我使用过的一些方法。 我敢肯定,您已经找到了解决该问题的创新方法,并且有兴趣了解它们。

创建工作簿菜单 (Create a Workbook Menu)

You can use programming to create a special menu with a list of sheets. Add the menu to the menu bar when the workbook opens, and remove the menu when the workbook closes. John Walkenbach has a nice example of an Excel menu maker [update - site no longer active].

您可以使用编程来创建带有工作表列表的特殊菜单。 工作簿打开时,将菜单添加到菜单栏,工作簿关闭时,将菜单删除。 John Walkenbach有一个Excel菜单制作者的很好的例子[更新-站点不再活动]。

添加工作表下拉列表 (Add a Drop Down List of Sheets)

Another option is to install an add-in that lists all the sheets in the active workbook, in a toolbar dropdown list. Dave Peterson created a Navigation Toolbar for Excel 2003.

另一个选择是安装一个外接程序,该外接程序在工具栏下拉列表中列出活动工作簿中的所有工作表。 Dave Peterson 为Excel 2003创建了一个导航工具栏

Ron de Bruin adapted the code to create a Navigation Command for Excel 2007.

Ron de Bruin修改了代码, 为Excel 2007创建了一个导航命令

NavToolbarSelect

创建超链接列表 (Create List of Hyperlinks)

A non-programming option is to create a list of sheets on a worksheet, then change each sheet name into a hyperlink.

一种非编程选项是在工作表上创建工作表列表,然后将每个工作表名称更改为超链接。

HyperlinkClick
  1. Click on a cell that contains a sheet name.

    单击包含工作表名称的单元格。
  2. On Excel's Ribbon, click the Insert tab (In Excel 2003, click the Insert Menu.)

    在Excel的功能区上,单击“插入”选项卡(在Excel 2003中,单击“插入菜单”。)
  3. Click Hyperlink, to open the Insert Hyperlink dialog box.

    单击“超链接”,以打开“插入超链接”对话框。
  4. In the Link To list, click on Place in This Document

    在“链接到”列表中,单击“ 放置在此文档中”

  5. In the list of places in the document, click on a sheet name, then click OK.

    在文档的位置列表中,单击工作表名称,然后单击“确定”。

It will take you a few minutes to set up all the hyperlinks in a large Excel workbook, but they'll make it easy to navigate through the sheets.

在大型Excel工作簿中设置所有超链接将花费几分钟,但是它们将使您轻松浏览工作表。

NOTE: If you have a copy of my Contextures Excel Tools add-in, you can use it to create a quick list of sheets in the active workbook, with hyperlinks

注意 :如果您有Contextures Excel Tools加载项的副本,则可以使用它在活动工作簿中使用超链接创建工作表的快速列表。

Sheet Links command in Excel Tools add-in
Sheet Links command in Excel Tools add-in
Excel Tools加载项中的图纸链接命令

获取超链接工作簿 (Get the Hyperlink Workbook)

Based on sample code from Sam and Andrew in the reader comments below, I've posted an Excel Table of Contents workbook in which you can create a popup list or or a list with sheet hyperlinks.

根据下面的读者评论中Sam和Andrew的示例代码,我发布了一个Excel目录工作簿,您可以在其中创建弹出列表或带有工作表超链接的列表。

To see more hyperlink tips, videos, and macros, go to the Hyperlinks and Hyperlink Function page on my Contextures site. There are hyperlink tips, videos, and macros, and sample files to download.

要查看更多超链接技巧,视频和宏,请转到Contextures网站上的“超链接和超链接功能”页面 。 有超链接提示,视频和宏,以及要下载的示例文件。

翻译自: https://contexturesblog.com/archives/2008/12/17/create-a-table-of-contents-in-excel/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值