Que préciser pour que le commentaire soit en gras ... ? [RéSoLu]

anthoYS

XLDnaute Barbatruc
Bonjour,

VB:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)With Target
    If .Column = 3 Then
        Cancel = True
        If .Comment Is Nothing Then
            .AddComment
            .Comment.Shape.Width = 48
            .Comment.Shape.Height = 12
        End If
        SendKeys "%im"
    End If
End With
If Not Application.Intersect(Target, Range("A:A")) Is Nothing And IsEmpty(Target) Then
Calendrier.Show
End If
End Sub

Merci
à+
 

Pièces jointes

  • 212.xls
    31.5 KB · Affichages: 24
Dernière édition:

jecherche

XLDnaute Occasionnel
Re : Que préciser pour que le commentaire soit en gras quand je le saisirais directem

Bonjour,

À voir si c'est bon :
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 3 Then
  With Target
  Cancel = True
  If .Comment Is Nothing Then
     .AddComment
     .Comment.Shape.Width = 48
     .Comment.Shape.Height = 12
     .Comment.Shape.TextFrame.Characters.Font.Bold = True
        
     SendKeys "%im"
  End If

  End With
End If
End Sub


Jecherche
 
Dernière modification par un modérateur:

Discussions similaires

Statistiques des forums

Discussions
312 337
Messages
2 087 392
Membres
103 536
dernier inscrit
komivi