STEPHANE786
XLDnaute Nouveau
bonjour
je n arrive pas a faire fonctionnner la macro il faudrait compiler les deux je pense mais trop difficile pour moi
merci pour votre aide
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Isect As Range
Static IsOn As Boolean
If IsOn Then
IsOn = False
Exit Sub
End If
Set Isect = Application.Intersect(Target, Range("Saisie"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
If .Value = "" Then Exit Sub
Sheets("liste deroulante").Range("A300").Value = .Value
With .Validation
.Modify Formula1:="=Listename"
End With
End With
SendKeys "%{DOWN}", False
IsOn = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Isect As Range
Set Isect = Application.Intersect(Target, Range("Saisie"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
With .Validation
.Modify Formula1:="=ListeAlpha"
End With
End With
SendKeys "%{DOWN}", False
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
If m <> "" Then Range(m).Comment.Visible = False
If Not Target.Comment Is Nothing Then
Target.Comment.Visible = True
Target.Comment.Shape.Left = Target.Left - Target.Comment.Shape.Width - 10
m = Target.Address
Else
m = ""
End If
End Sub
je n arrive pas a faire fonctionnner la macro il faudrait compiler les deux je pense mais trop difficile pour moi
merci pour votre aide
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Isect As Range
Static IsOn As Boolean
If IsOn Then
IsOn = False
Exit Sub
End If
Set Isect = Application.Intersect(Target, Range("Saisie"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
If .Value = "" Then Exit Sub
Sheets("liste deroulante").Range("A300").Value = .Value
With .Validation
.Modify Formula1:="=Listename"
End With
End With
SendKeys "%{DOWN}", False
IsOn = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Isect As Range
Set Isect = Application.Intersect(Target, Range("Saisie"))
If Isect Is Nothing Then Exit Sub
With Target
If .Rows.Count > 1 Or .Columns.Count > 1 Then Exit Sub
With .Validation
.Modify Formula1:="=ListeAlpha"
End With
End With
SendKeys "%{DOWN}", False
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
If m <> "" Then Range(m).Comment.Visible = False
If Not Target.Comment Is Nothing Then
Target.Comment.Visible = True
Target.Comment.Shape.Left = Target.Left - Target.Comment.Shape.Width - 10
m = Target.Address
Else
m = ""
End If
End Sub