Note: The other languages of the website are Google-translated. Back to English

如何創建一個帶有超鏈接的下拉列表到Excel中的每個工作表?

也許您之前已經創建了一個下拉列表,但是您是否曾經創建過一個包含指向Excel中每個工作表的超鏈接的下拉列表,如下所示?
具有工作錶鍊接1的doc下拉列表

創建帶有工作表超鏈接的下拉列表

創建帶有超鏈接的工作表列表好主意3


使用工作表超鏈接創建下拉列表

只有VBA代碼可以處理Excel中的作業。

1。 點擊 開發人員 > 插入 > 組合框(ActiveX控件).
具有工作錶鍊接2的doc下拉列表

注意:如果功能區中未顯示開發人員選項卡,請單擊 文件 > 選項 > 自定義功能區,然後檢查 開發人員 右框中的選項。 看截圖:
具有工作錶鍊接3的doc下拉列表

2.然後在任意位置繪製一個組合框。
具有工作錶鍊接4的doc下拉列表

3.右鍵單擊您剛才繪製的組合框的工作表,然後單擊 查看代碼 從上下文菜單。
具有工作錶鍊接5的doc下拉列表

4.將以下代碼複製並粘貼到空白腳本中,然後將其保存以返回到工作表。

VBA:使用工作錶鍊接創建下拉列表

 Private Sub ComboBox1_Change()
'UpdatebyExtendoffice20180404
    Sheets(Me.ComboBox1.Text).Select
End Sub
Private Sub ComboBox1_GotFocus()
    Dim I As Long
    Me.ComboBox1.Style = fmStyleDropDownList
    If Me.ComboBox1.ListCount <> Sheets.Count Then
        Me.ComboBox1.Clear
        For I = 1 To ActiveWorkbook.Sheets.Count
            Me.ComboBox1.AddItem Sheets(I).Name
        Next
    End If
    Me.ComboBox1.DropDown
End Sub

doc drop down list with sheet link 6

5. Click Developer > Design Mode to exit the design mode.
doc drop down list with sheet link 7

Now all sheets have been listed in the drop-down list, and it will go to the sheet while you clicking at the sheet name.
doc drop down list with sheet link 8


Create a list of sheets with hyperlinks

If you just want to create a list of clickable sheet names as below screenshot shown, you can apply Kutools for Excel’s Create List of Sheet Names feature which can create a list of hyperlinks about sheet names or list of macro buttons about sheet names.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1. Click Kutools Plus > Worksheet > Create List of Sheet Names.
doc drop down list with sheet link 9

2. In the Create List of Sheet Names dialog, do as below:
doc drop down list with sheet link 10

(1). Check Contains a list of hyperlinks< to create a list of clickable sheet names, or check Contains buttons and macros to create buttons which link to each sheet.

(2). Give the new sheet which you will place the hyperlinks in a name.

(3). Specify the location of the new sheet.

(4). Specify the sheet links displayed as how many columns.
doc drop down list with sheet link 11

3. click Ok, now the clickable sheet names have been displayed in new sheet.
doc drop down list with sheet link 9


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (3)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Consegui criar uma lista suspensa com hyperlinks de planilha, porém gostaria de aplicar apenas a algumas planilhas, como posso restringir esse comando?
This comment was minimized by the moderator on the site
How can I create a drop down list with links to only certain pages in my excel workbook?
This comment was minimized by the moderator on the site
سلام
من میخوام توی لیستم فقط شیت های خاصی قرار بگیرن نه همه شیت ها
چطور این کار رو انجام بدم؟
ممنون
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL