Skip i'r prif gynnwys

 Sut i greu hypergysylltiadau y gellir eu clicio yn y tabl colyn?

Gallwch chi glicio hyperddolen yn hawdd i gysylltu â'i dudalen we mewn taflen waith, ond os ydych chi'n creu tabl colyn sy'n cynnwys hypergysylltiadau, ni fydd modd clicio'r hypergysylltiadau. Oes gennych chi unrhyw syniadau da i ddatrys y broblem hon yn Excel?

Creu hypergysylltiadau y gellir eu clicio yn y tabl colyn gyda chod VBA


swigen dde glas saeth Creu hypergysylltiadau y gellir eu clicio yn y tabl colyn gyda chod VBA

Nid yw'r hypergysylltiadau yn gweithio yn y tabl colyn yn ddiofyn, ond yn ffodus, gallwch greu cod VBA i wneud y hypergysylltiadau yn gliciadwy yn y tabl colyn.

1. Daliwch i lawr y ALT + F11 allweddi, ac mae'n agor y Ffenestr Microsoft Visual Basic for Applications.

2. Yna dewiswch eich taflen waith ail-law o'r chwith Archwiliwr Prosiect cwarel, cliciwch ddwywaith arno i agor a Modiwlau, ac yna copïo a gludo gan ddilyn y cod VBA i'r gwag Modiwlau:

Cod VBA: Creu hypergysylltiadau y gellir eu clicio yn y tabl colyn

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Update 20140814
If Target.Cells.Count <> 1 Then Exit Sub
On Error Resume Next
Application.ActiveWorkbook.FollowHyperlink Address:=CStr(Target.Value), NewWindow:=True
End Sub

doc-gwneud-hyperlink-clic-pivottable-1

3. Yna arbedwch a chau'r cod hwn, ewch yn ôl i'ch taflen waith, ac yn awr, pan fyddwch chi'n clicio'r hyperddolen yn eich tabl colyn, bydd yr hyperddolen yn cael ei actifadu a'i chysylltu â'i dudalen we.

Nodyn: Mae'r cod hwn ar gael yn unig ar gyfer y dolenni tudalen we sy'n dechrau gyda Http: //.

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Anyone know how to run this on only one column in the pivot table...as all my columns are clickable, even though there is no link behind them......
This comment was minimized by the moderator on the site
Muchas gracias. A mi me ha funcionado con enlaces a peliculas de mi disco duro, que tenia una base de datos de mis pelis. Asi que no solo funciona con http... o al menos a mi me ha servido.
This comment was minimized by the moderator on the site
I tried the oce but it doesn't work. I someone willing to take a look at my document ?
This comment was minimized by the moderator on the site
I have two types of data in my pivot table that would use a hyperlink: 1. a hyperlink to a document located on a shared drive. 2. an email address that I would like to use the mailto link to open an email. The macro above works for the document, but I can't figure out how to make it work for the email. Any ideas?
This comment was minimized by the moderator on the site
This works very well, but I'm trying to figure out how to have a shorter friendly name to click on rather than a long URL. I have 3 columns of different links and they all run together visually. A symbol or even a friendly name based on a previous cell in that row would be excellent.
This comment was minimized by the moderator on the site
What about Hyperlinking documents within the pivot table?
This comment was minimized by the moderator on the site
This will make it so it works across all workbooks. Enter this into "ThisWorkbook" rather than individual sheets. Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) ' MsgBox Sh.Name ' MsgBox Target.Address If Target.Cells.Count = 1 Then On Error Resume Next ActiveWorkbook.FollowHyperlink Address:=CStr(Target.Value), NewWindow:=True On Error GoTo 0 End If End Sub
This comment was minimized by the moderator on the site
Why is the hyperlink not working? Please help!! https://www.dropbox.com/s/zyp8e2g0sqygweb/zero%20test%202.xlsm?dl=0
I have tried in a number of ways, tab and worksheet specific - and to no avail..
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations