You are on page 1of 2

Sub Registrar()

'

' Registrar Macro

'

'

ActiveCell.Select

ActiveCell.FormulaR1C1 = "=INDIRECT(RC[-2]) INDIRECT(RC[-1])"

ActiveCell.Select

Selection.Copy

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _

:=False, Transpose:=False

Application.CutCopyMode = False

ActiveCell.Offset(0, -4).Range("A1").Select

ActiveCell.FormulaR1C1 = "=TODAY()"

ActiveCell.Select

Selection.Copy

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _

:=False, Transpose:=False

Application.CutCopyMode = False

ActiveCell.Offset(0, 1).Range("A1:C1").Select

Selection.AutoFill Destination:=ActiveCell.Range("A1:C2"), Type:= _

xlFillDefault

ActiveCell.Range("A1:C2").Select

ActiveCell.Offset(1, 0).Range("A1:C1").Select

Selection.ClearContents

ActiveCell.Select

Selection.CurrentRegion.Select

Selection.CreateNames Top:=True, Left:=False, Bottom:=False, Right:= _


False

ActiveCell.Offset(0, 1).Range("A1").Select

Selection.End(xlDown).Select

ActiveCell.Offset(1, 0).Range("A1").Select

End Sub

You might also like