Loncat ke daftar isi utama

 Bagaimana cara membuat hyperlink yang dapat diklik di tabel pivot?

Anda dapat dengan mudah mengklik hyperlink untuk menautkan ke halaman webnya di lembar kerja, tetapi jika Anda membuat tabel pivot yang berisi hyperlink, hyperlink tidak akan dapat diklik. Apakah Anda punya ide bagus untuk mengatasi masalah ini di Excel?

Buat hyperlink yang dapat diklik di tabel pivot dengan kode VBA


panah gelembung kanan biru Buat hyperlink yang dapat diklik di tabel pivot dengan kode VBA

Hyperlink tidak berfungsi di tabel pivot secara default, tetapi untungnya, Anda dapat membuat kode VBA agar hyperlink dapat diklik di tabel pivot.

1. Tahan ALT + F11 kunci, dan itu membuka Jendela Microsoft Visual Basic for Applications.

2. Kemudian pilih lembar kerja bekas Anda dari kiri Penjelajah Proyek panel, klik dua kali untuk membuka Modul, lalu salin dan tempel kode VBA berikut ke dalam kolom kosong Modul:

Kode VBA: Buat hyperlink yang dapat diklik di tabel pivot

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-make-hyperlink-klik-pivottable-1

3. Kemudian simpan dan tutup kode ini, kembali ke lembar kerja Anda, dan sekarang, saat Anda mengklik hyperlink di tabel pivot Anda, hyperlink akan diaktifkan dan menautkan ke halaman webnya.

Note: Kode ini hanya tersedia untuk tautan halaman web yang dimulai dengan Http: //.

Alat Produktivitas Kantor Terbaik

馃 Kutools AI Ajudan: Merevolusi analisis data berdasarkan: Eksekusi Cerdas   |  Hasilkan Kode  |  Buat Rumus Khusus  |  Analisis Data dan Hasilkan Grafik  |  Aktifkan Fungsi Kutools...
Fitur Populer: Temukan, Sorot, atau Identifikasi Duplikat   |  Hapus Baris Kosong   |  Gabungkan Kolom atau Sel tanpa Kehilangan Data   |   Putaran tanpa Formula ...
Pencarian Super: VLookup Beberapa Kriteria    VLookup Nilai Berganda  |   VLookup di Beberapa Lembar   |   Pencarian Fuzzy ....
Daftar Drop-down Lanjutan: Buat Daftar Drop Down dengan Cepat   |  Daftar Drop Down yang Bergantung   |  Multi-pilih Drop Down List ....
Manajer Kolom: Tambahkan Jumlah Kolom Tertentu  |  Pindahkan Kolom  |  Alihkan Status Visibilitas Kolom Tersembunyi  |  Bandingkan Rentang & Kolom ...
Fitur Unggulan: Fokus Kisi   |  Tampilan Desain   |   Bar Formula Besar    Manajer Buku Kerja & Lembar   |  Perpustakaan Sumberdaya (Teks otomatis)   |  Pemetik tanggal   |  Gabungkan Lembar Kerja   |  Enkripsi/Dekripsi Sel    Kirim Email berdasarkan Daftar   |  Filter Super   |   Filter Khusus (filter tebal/miring/coret...) ...
15 Perangkat Teratas12 Teks Tools (Tambahkan Teks, Hapus Karakter, ...)   |   50 + Grafik jenis (Gantt Chart, ...)   |   40+ Praktis Rumus (Hitung usia berdasarkan ulang tahun, ...)   |   19 Insersi Tools (Masukkan Kode QR, Sisipkan Gambar dari Jalur, ...)   |   12 Konversi Tools (Angka ke Kata, Konversi Mata Uang, ...)   |   7 Gabungkan & Pisahkan Tools (Lanjutan Gabungkan Baris, Pisahkan Sel, ...)   |   ... dan banyak lagi

Tingkatkan Keterampilan Excel Anda dengan Kutools for Excel, dan Rasakan Efisiensi yang Belum Pernah Ada Sebelumnya. Kutools for Excel Menawarkan Lebih dari 300 Fitur Lanjutan untuk Meningkatkan Produktivitas dan Menghemat Waktu.  Klik Di Sini untuk Mendapatkan Fitur yang Paling Anda Butuhkan...

Deskripsi Produk


Tab Office Membawa antarmuka Tab ke Office, dan Membuat Pekerjaan Anda Jauh Lebih Mudah

  • Aktifkan pengeditan dan pembacaan tab di Word, Excel, PowerPoint, Publisher, Access, Visio, dan Project.
  • Buka dan buat banyak dokumen di tab baru di jendela yang sama, bukan di jendela baru.
  • Meningkatkan produktivitas Anda sebesar 50%, dan mengurangi ratusan klik mouse untuk Anda setiap hari!
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