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

Jak vytvořit rozevírací seznam s hypertextovými odkazy na každý list v aplikaci Excel?

Možná jste již dříve vytvořili rozevírací seznam, ale už jste někdy vytvořili rozevírací seznam s hypertextovými odkazy na každý list v aplikaci Excel, jak je ukázáno níže?
rozevírací seznam dokumentů s odkazem na list 1

Vytvořte rozevírací seznam s hypertextovými odkazy na listy

Vytvořte seznam listů s hypertextovými odkazydobrý nápad3


Vytvořte rozevírací seznam s hypertextovým odkazem na list

Existuje pouze kód VBA, který dokáže zpracovat úlohu v aplikaci Excel.

1. cvaknutí Vývojka > Vložit > Rozbalovací seznam (ovládací prvky ActiveX).
rozevírací seznam dokumentů s odkazem na list 2

Poznámka: Pokud se karta Vývojář na pásu karet nezobrazuje, klikněte prosím Soubor > možnosti > Přizpůsobit pás karet, a potom zkontrolujte Vývojka možnost v pravém poli. Viz screenshot:
rozevírací seznam dokumentů s odkazem na list 3

2. Potom nakreslete Combo Box kamkoli chcete.
rozevírací seznam dokumentů s odkazem na list 4

3. Klikněte pravým tlačítkem na list, který jste právě nakreslili se seznamem, a klikněte Zobrazit kód z kontextové nabídky.
rozevírací seznam dokumentů s odkazem na list 5

4. Zkopírujte a vložte níže uvedený kód do prázdného skriptu a poté jej uložte, abyste se vrátili zpět na list.

VBA: Vytvořte rozevírací seznam s odkazy na listy

 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-2019 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