Re,
remplace la macro Sub Importer_RepListeQuellensteuer() par celle ci-après
Sub Importer_RepListeQuellensteuer()
Application.ScreenUpdating = False
Workbooks.Open Filename:="C:\Users\LACY\Documents\Yves\AG - PK Post\aaa_RepListeQuellensteuer_BASE.xls"
Sheets("RepListeQuellensteuer").Move Before:=Workbooks("aaa_QUELLENSTEUER.xls").Sheets(1)
Range("A:A,B:B,F:F").Delete Shift:=xlToLeft
Range("I1") = "LEISTUNGS- ENDE"
Range("J1") = "BEMERKUNG"
Range("G1") = "BRUTTO- EINKUENFTE"
End Sub
Cette macro Sub BordsGris_Cadres(), essaye avec celle ci-dessous
Sub BordsGris_Cadres()
' Change la couleur et les cadres de la ligne 10
Sheets("RepListeQuellensteuer").Select
With Range("A10:J10")
With .Interior
.ColorIndex = 15
.Pattern = xlSolid
End With
.RowHeight = 28.5
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = True
.BorderAround ColorIndex:=xlAutomatic, LineStyle:=xlContinuous, Weight:=xlThin
With .Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
End with
End sub
Je vois aussi une macro FUNCTION, là est probablement le problème. Elle s'éxécute constamment à chaque changement sur ta feuille.
Il faudrait suspendre le calcul par l'instruction Application.Calculation = xlCalculationManual puis mettre une instruction Calculate en fin de macro
Amicalement
Dan