in quel file.In alternativa posso copiare questi 3000 file e quindi applicarci la stessa macro.
è possibile fare "qualcosa " che mi applichi questa macro che allego a tutti dile contenuti nella directory PIPPO ?
- Codice: Seleziona tutto
Sub Macro2()
'
' Macro2 Macro
'
'
Range("M9").Select
ActiveSheet.Unprotect
Columns("C:C").Select
Selection.Copy
Columns("A:A").Select
Selection.Insert Shift:=xlToRight
Columns("G:G").Select
Application.CutCopyMode = False
Selection.Copy
Columns("B:B").Select
Selection.Insert Shift:=xlToRight
Range("B1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Range("A1").Select
ActiveCell.FormulaR1C1 = ""
Range("B2").Select
ActiveCell.FormulaR1C1 = "DESCRIZIONE"
With ActiveCell.Characters(Start:=1, Length:=11).Font
.Name = "Arial"
.FontStyle = "Grassetto"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
Range("A2").Select
ActiveCell.FormulaR1C1 = "NUMERO"
With ActiveCell.Characters(Start:=1, Length:=6).Font
.Name = "Arial"
.FontStyle = "Grassetto"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
Range("A3").Select
ActiveCell.FormulaR1C1 = "=R1C5"
Range("B3").Select
ActiveCell.FormulaR1C1 = "=R1C8"
Range("A3:B3").Select
Selection.Copy
Range("A4:B47").Select
ActiveSheet.Paste
Range("B2").Select
Application.CutCopyMode = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub