Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Jacky
Bonjour,
Ceci peut-être... '-------------- Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = [T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-----------
-- Salutations JJ
"Alain Lebayle" a écrit dans le message de news:
Bonjour, J'essaie de faire fonctionner quelque chose comme cela, supprimer également la cellule qui se trouve à droite
Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" .Range("R1:R26").Replace What:=Range("T1").Value, _ Replacement:="" & Offset(0, 1).Value = "" .Protect Password:="toto" End With Application.ScreenUpdating = True
Je vous remercie Alain
Bonjour,
Ceci peut-être...
'--------------
Sub jj()
Dim c As Range
Application.ScreenUpdating = False
With Sheets("Feuil1")
.Unprotect Password:="toto"
For Each c In .Range("R1:R26")
If c.Value = [T1] Then Range(c, c.Offset(, 1)).ClearContents
Next
.Protect Password:="toto"
End With
Application.ScreenUpdating = True
End Sub
'-----------
--
Salutations
JJ
"Alain Lebayle" <alain.lebayle@club-internet.fr> a écrit dans le message de news:
eW9rZ4w0KHA.4412@TK2MSFTNGP02.phx.gbl...
Bonjour,
J'essaie de faire fonctionner quelque chose comme cela, supprimer également la cellule qui se trouve à
droite
Application.ScreenUpdating = False
With Sheets("Feuil1")
.Unprotect Password:="toto"
.Range("R1:R26").Replace What:=Range("T1").Value, _
Replacement:="" & Offset(0, 1).Value = ""
.Protect Password:="toto"
End With
Application.ScreenUpdating = True
Ceci peut-être... '-------------- Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = [T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-----------
-- Salutations JJ
"Alain Lebayle" a écrit dans le message de news:
Bonjour, J'essaie de faire fonctionner quelque chose comme cela, supprimer également la cellule qui se trouve à droite
Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" .Range("R1:R26").Replace What:=Range("T1").Value, _ Replacement:="" & Offset(0, 1).Value = "" .Protect Password:="toto" End With Application.ScreenUpdating = True
Je vous remercie Alain
Jacky
Re... Quelques "." (point) se sont subtilisés ;o)) '------------------ Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = .[T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-------------------
-- Salutations JJ
"Jacky" a écrit dans le message de news:
Bonjour,
Ceci peut-être... '-------------- Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = [T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-----------
-- Salutations JJ
"Alain Lebayle" a écrit dans le message de news:
Bonjour, J'essaie de faire fonctionner quelque chose comme cela, supprimer également la cellule qui se trouve à droite
Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" .Range("R1:R26").Replace What:=Range("T1").Value, _ Replacement:="" & Offset(0, 1).Value = "" .Protect Password:="toto" End With Application.ScreenUpdating = True
Je vous remercie Alain
Re...
Quelques "." (point) se sont subtilisés ;o))
'------------------
Sub jj()
Dim c As Range
Application.ScreenUpdating = False
With Sheets("Feuil1")
.Unprotect Password:="toto"
For Each c In .Range("R1:R26")
If c.Value = .[T1] Then Range(c, c.Offset(, 1)).ClearContents
Next
.Protect Password:="toto"
End With
Application.ScreenUpdating = True
End Sub
'-------------------
--
Salutations
JJ
"Jacky" <Dupond@marcel.fr> a écrit dans le message de news: uMqdIfx0KHA.776@TK2MSFTNGP04.phx.gbl...
Bonjour,
Ceci peut-être...
'--------------
Sub jj()
Dim c As Range
Application.ScreenUpdating = False
With Sheets("Feuil1")
.Unprotect Password:="toto"
For Each c In .Range("R1:R26")
If c.Value = [T1] Then Range(c, c.Offset(, 1)).ClearContents
Next
.Protect Password:="toto"
End With
Application.ScreenUpdating = True
End Sub
'-----------
--
Salutations
JJ
"Alain Lebayle" <alain.lebayle@club-internet.fr> a écrit dans le message de news:
eW9rZ4w0KHA.4412@TK2MSFTNGP02.phx.gbl...
Bonjour,
J'essaie de faire fonctionner quelque chose comme cela, supprimer également la cellule qui se trouve à
droite
Application.ScreenUpdating = False
With Sheets("Feuil1")
.Unprotect Password:="toto"
.Range("R1:R26").Replace What:=Range("T1").Value, _
Replacement:="" & Offset(0, 1).Value = ""
.Protect Password:="toto"
End With
Application.ScreenUpdating = True
Re... Quelques "." (point) se sont subtilisés ;o)) '------------------ Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = .[T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-------------------
-- Salutations JJ
"Jacky" a écrit dans le message de news:
Bonjour,
Ceci peut-être... '-------------- Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = [T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-----------
-- Salutations JJ
"Alain Lebayle" a écrit dans le message de news:
Bonjour, J'essaie de faire fonctionner quelque chose comme cela, supprimer également la cellule qui se trouve à droite
Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" .Range("R1:R26").Replace What:=Range("T1").Value, _ Replacement:="" & Offset(0, 1).Value = "" .Protect Password:="toto" End With Application.ScreenUpdating = True
Je vous remercie Alain
Alain Lebayle
Bonjour Jacky, C'est parfait grand merci !!! Alain
Jacky a écrit :
Re... Quelques "." (point) se sont subtilisés ;o)) '------------------ Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = .[T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-------------------
Bonjour Jacky,
C'est parfait grand merci !!!
Alain
Jacky a écrit :
Re...
Quelques "." (point) se sont subtilisés ;o))
'------------------
Sub jj()
Dim c As Range
Application.ScreenUpdating = False
With Sheets("Feuil1")
.Unprotect Password:="toto"
For Each c In .Range("R1:R26")
If c.Value = .[T1] Then Range(c, c.Offset(, 1)).ClearContents
Next
.Protect Password:="toto"
End With
Application.ScreenUpdating = True
End Sub
'-------------------
Bonjour Jacky, C'est parfait grand merci !!! Alain
Jacky a écrit :
Re... Quelques "." (point) se sont subtilisés ;o)) '------------------ Sub jj() Dim c As Range Application.ScreenUpdating = False With Sheets("Feuil1") .Unprotect Password:="toto" For Each c In .Range("R1:R26") If c.Value = .[T1] Then Range(c, c.Offset(, 1)).ClearContents Next .Protect Password:="toto" End With Application.ScreenUpdating = True End Sub '-------------------