Hello,
I have a VBA code that I had made, but having a difficult time making a table from it. It has to be from a current selection, instead of A5 as it is never in the same cell in each workbook. Can someone help me?
Sub template()
'
' template Macro
'
'
ActiveCell.Select
ActiveCell.FormulaR1C1 = "word"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "Date and Time:"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Start Time:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Build Complete:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Updated:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Ticket:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Send To:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Completed:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Status:"
ActiveCell.Offset(0, 1).Select
ActiveCell.Offset(-7, -1).Select
Selection.Offset(1, 2).Select
End Sub
I have a VBA code that I had made, but having a difficult time making a table from it. It has to be from a current selection, instead of A5 as it is never in the same cell in each workbook. Can someone help me?
Sub template()
'
' template Macro
'
'
ActiveCell.Select
ActiveCell.FormulaR1C1 = "word"
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "Date and Time:"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Start Time:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Build Complete:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Updated:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Ticket:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Send To:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Completed:"
ActiveCell.Offset(0, 1).Select
Selection.NumberFormat = "d/m/yyyy h:mm AM/PM"
ActiveCell.Offset(1, -1).Select
ActiveCell.FormulaR1C1 = "Status:"
ActiveCell.Offset(0, 1).Select
ActiveCell.Offset(-7, -1).Select
Selection.Offset(1, 2).Select
End Sub