Bernard-Louis
XLDnaute Occasionnel
Bonjour a toutes et tous.
Je fais appel a vos connaissaces VBA pour un plantage sur cette macro :
Le probleme se pose sur cette instruction :
Selection.QueryTable.Delete
Quelqu'un pourrait il me donner la cause, du fait que cette macro tourne depuis des mois sans probleme.
Sub Effacer_les_donnees()
'
' Effacer_les_donnees Macro
' Macro enregistrée le 16/10/2006
'
'
ActiveWindow.SmallScroll Down:=-3
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Selection.QueryTable.Delete
Sheets("CCC").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Sheets("DDD").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Sheets("NNN").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
End Sub
Avec mes remerciements.
Cordialement et bonne journée.
Je fais appel a vos connaissaces VBA pour un plantage sur cette macro :
Le probleme se pose sur cette instruction :
Selection.QueryTable.Delete
Quelqu'un pourrait il me donner la cause, du fait que cette macro tourne depuis des mois sans probleme.
Sub Effacer_les_donnees()
'
' Effacer_les_donnees Macro
' Macro enregistrée le 16/10/2006
'
'
ActiveWindow.SmallScroll Down:=-3
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Selection.QueryTable.Delete
Sheets("CCC").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Sheets("DDD").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Sheets("NNN").Select
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
End Sub
Avec mes remerciements.
Cordialement et bonne journée.