Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Delphi -> Excel -> Drop-Down-Liste -> Hyperlinks (https://www.delphipraxis.net/183032-delphi-excel-drop-down-liste-hyperlinks.html)

Nimmersatt 5. Dez 2014 14:47

Delphi -> Excel -> Drop-Down-Liste -> Hyperlinks
 
Hallo,


Ich möchte bei Excel in einer Dropdownliste wahlweise Hyperlinks setzen.

Dropdown-Liste
Code:
 WorkBook := Excel.ActiveWorkBook;
 WorkSheet := WorkBook.ActiveSheet;
 Range := WorkSheet.Range['A1:A4'];
 Range.Validation.Delete;
 Range.Validation.Add(3, 1, 1,'erster Link;kein Link ;zweiter Link;dritter Link', null);
Hyperlink
Code:
Excel.WorkBooks[1].Worksheets[1].Hyperlinks.add(Excel.WorkBooks[1].Worksheets[1].cells[1,1],''www.delphipraxis.net'');
Wie kann ich den Hyperlink in die entsprechende Zeile einarbeiten ?
Laut Google scheint dieses Problem sehr viele Anwender zu interessieren.


mfg Nimmersatt

Nimmersatt 8. Dez 2014 13:27

AW: Delphi -> Excel -> Drop-Down-Liste -> Hyperlinks
 
Ein Lösungsvorschlag in Excel

http://www.spotlight-wissen.de/archi...e/1642256.html


Ist es auch über Delphi umsetzbar ?


mfg Nimmersatt


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz