M
maryrossignon
Guest
Bonjour le Forum,
Voici ma question :
Depuis la migration d'Excel 2003 vers 2007 la fonction suivante m'affiche une erreur d'execution 1004.
Est ce que quelqu'un pourrait m'aider svp à corriger le code pour que ça fonctionne à nouveau.
Cordialement.
MaryR
Voici ma question :
Depuis la migration d'Excel 2003 vers 2007 la fonction suivante m'affiche une erreur d'execution 1004.
Est ce que quelqu'un pourrait m'aider svp à corriger le code pour que ça fonctionne à nouveau.
Code:
Sub CompilationLigneEntete1()
Dim f As Worksheet
Set f = Sheets("Compilation")
Application.ScreenUpdating = False
Entete = Array("Cpte", "Jrnl", "NR", "Date", "Documents", "Mt HTVA (D)", "Mt HTVA (C)", "C.I.", "C.A.", "Commentaires", "Conducteurs", "Transmises le", "A retourner, le", "Remise, le", "Etat", "A payer", "Échéance", "Echue, le", "Retard PT", "Payée, le", "Rappel")
[COLOR="Red"][B][I]f.Cells(1, 1).EntireRow.Insert[/I][/B][/COLOR]
With f
With .Range("A1:X1")
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.Value = Entete
.Interior.ColorIndex = 15
With .Font
.Size = 10
.Bold = True
.Italic = True
.ColorIndex = 1
End With
End With
End With
f.Cells.RowHeight = 14
Application.ScreenUpdating = True
End Sub
Cordialement.
MaryR