XL 2016 lien hypertexte dans un commentaire

  • Initiateur de la discussion Initiateur de la discussion chifounou
  • Date de début Date de début

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

Re

Par contre avec une forme ça marche, mais il faut la personnaliser.

VB:
Sub CreeShape()
  Set s = Sheets(1).Shapes.AddShape(msoShapeRectangle, 10, 10, 180, 20)
  s.Name = "Menu1"
  With s
    .TextFrame.Characters.Text = "https://www.excel-downloads.com/"
    .TextFrame.Characters.Font.Color = vbBlue
    .TextFrame.Characters.Font.Underline = xlUnderlineStyleSingle
    .Fill.ForeColor.RGB = vbYellow
    .Line.ForeColor.RGB = vbRed
  End With
  Sheets(1).Hyperlinks.Add Anchor:=s, Address:="https://www.excel-downloads.com/"
End Sub

hyp.gif
 
Dernière édition:
Re

Ici avec 2 formes. Mais tu peux en mettre plus.

VB:
Option Explicit
Public s As Shape

Sub CreeShape()
    Set s = Sheets(1).Shapes.AddShape(msoShapeRectangle, 10, 10, 280, 20)
    s.Name = "Menu1"
    With s
        .TextFrame.Characters.Text = "https://www.excel-downloads.com/forums/forum-excel.7/"
        .TextFrame.Characters.Font.Color = vbBlue
        .TextFrame.Characters.Font.Underline = xlUnderlineStyleSingle
        .Fill.ForeColor.RGB = vbYellow
        .Line.ForeColor.RGB = vbRed
    End With
    Sheets(1).Hyperlinks.Add Anchor:=s, Address:="https://www.excel-downloads.com/forums/forum-excel.7/"

    Set s = Sheets(1).Shapes.AddShape(msoShapeRectangle, 10, 10, 214, 20)
    s.Name = "Menu2"
    With s
        .Top = s.Top + 23
        .TextFrame.Characters.Text = "https://www.excel-downloads.com/forums/"
        .TextFrame.Characters.Font.Color = vbBlue
        .TextFrame.Characters.Font.Underline = xlUnderlineStyleSingle
        .Fill.ForeColor.RGB = vbYellow
        .Line.ForeColor.RGB = vbRed
    End With
    Sheets(1).Hyperlinks.Add Anchor:=s, Address:="https://www.excel-downloads.com/forums/"

End Sub

hyp.gif
 
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
1
Affichages
114
Réponses
15
Affichages
130
Réponses
2
Affichages
329
Réponses
22
Affichages
395
Retour