Gunakan properti
Hyperlinks untuk mengembalikan koleksi IXLSHyperlinks
Contoh berikut menghapus
hyperlink di Worksheet satu untuk link yang mengandung kata tertentu
With Workbook.Sheets[1] do begin
if Hyperlinks.Count > 0 then begin
for i := Hyperlinks.Count downto 1 do begin
if Pos('Microsoft', Hyperlinks[i].Description) > 0 then
Hyperlinks[i].Delete;
end;
end;
end;
Gunakan metode Add untuk membuat hyperlink dan menambahkannya ke koleksi
Hyperlinks
Contoh berikut membuat hyperlink baru untuk sel A8
With Workbook.Sheets[1] do begin
Hyperlinks.Add(Range['A8','A8'], 'https://www.loslab.com/HotXLS.html');
end;
Gunakan metode Delete untuk menghapus
hyperlink dari Worksheet atau rentang
Contoh berikut menghapus
hyperlink dari Worksheet satu
Workbook.Sheets[1].Hyperlinks.Delete;
Contoh berikut menghapus
hyperlink dari rentang A1:F10 di Worksheet satu
Workbook.Sheets[1].Range['A1','F10'].Hyperlinks.Delete;