Kouik Kouik jr
XLDnaute Occasionnel
Salut le forum !
Lorsque j'apelle ma fonction Call Couleurs afin de colorier certaines cellules, cette application ne me donne aucun resultat ! (Alors que cette application marche je l'ai testée) mais des que je l'utilise avec Call alors là ca marche plus
Quelqu'un aurait il une petite idée ?
Lorsque j'apelle ma fonction Call Couleurs afin de colorier certaines cellules, cette application ne me donne aucun resultat ! (Alors que cette application marche je l'ai testée) mais des que je l'utilise avec Call alors là ca marche plus
Quelqu'un aurait il une petite idée ?
HTML:
Sub Couleurs()
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Dim dossier_all As String
Dim dossier_Journal As String
Dim dossier_Essais As String
Dim Cel As Range
Dim Déb As Integer, Fin As Integer, i As Integer, j As Integer
'Colorier cellules
'colorier 1ere colonne final (jaune = mêmes prix)
Dim CelluleTrouvee1 As Range
Dim ColFinale1 As Integer
i = 1
While i < Fin
Sheets("HSBC").Select
Set CelluleTrouvee1 = Range("A1:O1").Find("final", LookAt:=xlPart)
ColFinale1 = CelluleTrouvee1.Column
If Worksheets("HSBC").Cells(i, CelluleTrouvee1.Column).Value = Worksheets("HSBC").Range("Q" & i).Value Then
Worksheets("HSBC").Activate
Worksheets("HSBC").Cells(i, CelluleTrouvee1.Column).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
End With
End If
i = i + 1
Wend
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub