Add VBA scripts used
This commit is contained in:
parent
1e4b2d9d75
commit
1f48cdb33c
4
VBA_CROIX.txt
Normal file
4
VBA_CROIX.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
|
||||
If UCase(Target) = "x" Then Target = "" Else Target = "x"
|
||||
Cancel = True
|
||||
End Sub
|
16
VBA_DUPLICATION.txt
Normal file
16
VBA_DUPLICATION.txt
Normal file
@ -0,0 +1,16 @@
|
||||
Sub DUPLICATION()
|
||||
With Sheets("NOM")
|
||||
dl = .Cells(Rows.Count, 1).End(xlUp).Row
|
||||
Set ws = Sheets("DUPLI")
|
||||
k = 1
|
||||
For i = 1 To dl
|
||||
.Cells(i, 1).Copy ws.Cells(k, 1).Resize(6)
|
||||
k = k +
|
||||
Next i
|
||||
End With
|
||||
End Sub
|
||||
#créer une croix au double clic
|
||||
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
|
||||
If UCase(Target) = "x" Then Target = "" Else Target = "x"
|
||||
Cancel = True
|
||||
End Sub
|
Loading…
Reference in New Issue
Block a user