2008-10-23 22:05
ziile
Pridedu savo makrosa - gal patarsit kurioje vietoje reikia tai iterpti?
Sub suved()
'
' suved Macro
' Macro recorded 2008.10.23 by Demo
'
'
Range("A15").Select
ActiveCell.FormulaR1C1 = "=+R[-1]C+1"
Range("G5").Select
Selection.COPY
Range("B15").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("C15").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=+R[-11]C"
Range("G4").Select
Selection.COPY
Range("D15").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("E14").Select
Application.CutCopyMode = False
Range("G6").Select
Selection.COPY
Range("E15").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("F15").Select
Application.CutCopyMode = False
Range("F14").Select
Selection.AutoFill Destination:=Range("F14:F15"), Type:=xlFillDefault
Range("F14:F15").Select
Range("G14").Select
Selection.AutoFill Destination:=Range("G14:G15"), Type:=xlFillDefault
Range("G14:G15").Select
Range("G7:H7").Select
Selection.COPY
Range("H15").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("I15").Select
Application.CutCopyMode = False
Range("G8:H8").Select
Selection.COPY
Range("I15").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A16").Select
Application.CutCopyMode = False
Range("G4").Select
Selection.ClearContents
Range("G6").Select
Selection.ClearContents
Range("G7:H7").Select
Selection.ClearContents
Range("G8:H8").Select
Selection.ClearContents
End Sub