Bonjour,
j ai cree une macro sur exel mais quand je l execute elle ne s execute que sur la 4 feuille ( en gros pour qu elle execute il faut que j ouvre 3 feuille pour qu elle puisse s exuecuter sur la 4 eme feuille ) j aimerai qu elle s execute automatiquement sur la page suivant quelque soit la page suivante
donc j ai cherche le code de la macro pour le modifier :
Sheets.Add After:=Sheets(Sheets.Count)
Sheets("AVR PING PTION").Select
Columns("A:M").Select
Selection.Copy
Sheets("Feuil4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("A:C").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A7").Select
ActiveCell.FormulaR1C1 = "section"
Range("B7").Select
ActiveCell.FormulaR1C1 = "code PF"
Range("C7").Select
ActiveCell.FormulaR1C1 = "PRODUIT"
Range("D7").Select
ActiveCell.FormulaR1C1 = "PV/U"
Range("A8").Select
ActiveCell.FormulaR1C1 = "=IF(RC[4]=""Section :"",RC[5],R[-1]C)"
Range("B8").Select
ActiveCell.FormulaR1C1 = "=IF(RC[3]=""Section :"",RC[6],R[-1]C)"
Range("B8").Select
ActiveCell.FormulaR1C1 = "=IF(RC5=""Section :"",RC[6],R[-1]C)"
Range("B8").Select
Selection.AutoFill Destination:=Range("B8:C8"), Type:=xlFillDefault
Range("B8:C8").Select
Range("D8").Select
ActiveCell.FormulaR1C1 = "=IF(RC[1]=""Section :"",RC[9],R[-1]C)"
Range("A8😀8").Select
Selection.Copy
Range("A9").Select
Selection.End(xlDown).Select
Range("E1048576").Select
Selection.End(xlUp).Select
Range("A6183").Select
Range(Selection, Selection.End(xlUp)).Select
ActiveSheet.Paste
End Sub
mes connaissance en informatique sont tres limite donc svp help !
merci bcpppp
j ai cree une macro sur exel mais quand je l execute elle ne s execute que sur la 4 feuille ( en gros pour qu elle execute il faut que j ouvre 3 feuille pour qu elle puisse s exuecuter sur la 4 eme feuille ) j aimerai qu elle s execute automatiquement sur la page suivant quelque soit la page suivante
donc j ai cherche le code de la macro pour le modifier :
Sheets.Add After:=Sheets(Sheets.Count)
Sheets("AVR PING PTION").Select
Columns("A:M").Select
Selection.Copy
Sheets("Feuil4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("A:C").Select
Application.CutCopyMode = False
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A7").Select
ActiveCell.FormulaR1C1 = "section"
Range("B7").Select
ActiveCell.FormulaR1C1 = "code PF"
Range("C7").Select
ActiveCell.FormulaR1C1 = "PRODUIT"
Range("D7").Select
ActiveCell.FormulaR1C1 = "PV/U"
Range("A8").Select
ActiveCell.FormulaR1C1 = "=IF(RC[4]=""Section :"",RC[5],R[-1]C)"
Range("B8").Select
ActiveCell.FormulaR1C1 = "=IF(RC[3]=""Section :"",RC[6],R[-1]C)"
Range("B8").Select
ActiveCell.FormulaR1C1 = "=IF(RC5=""Section :"",RC[6],R[-1]C)"
Range("B8").Select
Selection.AutoFill Destination:=Range("B8:C8"), Type:=xlFillDefault
Range("B8:C8").Select
Range("D8").Select
ActiveCell.FormulaR1C1 = "=IF(RC[1]=""Section :"",RC[9],R[-1]C)"
Range("A8😀8").Select
Selection.Copy
Range("A9").Select
Selection.End(xlDown).Select
Range("E1048576").Select
Selection.End(xlUp).Select
Range("A6183").Select
Range(Selection, Selection.End(xlUp)).Select
ActiveSheet.Paste
End Sub
mes connaissance en informatique sont tres limite donc svp help !
merci bcpppp