Hello, I have been manually doing a process all day long and I want a macro that allows me to highlight a row and do the actions automatically. Can someone on the board take a look at this and help me make a macro?
The column looks like this originally:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Serial[/TD]
[TD]Date[/TD]
[TD]Title[/TD]
[TD]Name A[/TD]
[TD]Name B[/TD]
[TD]Name C[/TD]
[/TR]
</tbody>[/TABLE]
The new columns look like this when I'm done formatting:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Title[/TD]
[TD]Name B[/TD]
[TD]Name C[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Title[/TD]
[TD]Name A[/TD]
[TD]Name C[/TD]
[/TR]
[TR]
[TD]Serial[/TD]
[TD]Date[/TD]
[TD]Title[/TD]
[TD]Name A[/TD]
[TD]Name B[/TD]
[/TR]
</tbody>[/TABLE]
Here is what my repetitive action looks like when I record it as a macro:
Sub Macro4()'
' Macro4 Macro
'
'
Rows("3:3").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Rows("4:4").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("C5").Select
Selection.Copy
Range("C3:C4").Select
Range("C4").Activate
ActiveSheet.Paste
Range("D5").Select
Application.CutCopyMode = False
Selection.Copy
Range("D4").Select
ActiveSheet.Paste
Range("E5").Select
Application.CutCopyMode = False
Selection.Copy
Range("D3").Select
ActiveSheet.Paste
Range("F5").Select
Application.CutCopyMode = False
Selection.Copy
Range("E3:E4").Select
ActiveSheet.Paste
Range("F5").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
End Sub
The column looks like this originally:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Serial[/TD]
[TD]Date[/TD]
[TD]Title[/TD]
[TD]Name A[/TD]
[TD]Name B[/TD]
[TD]Name C[/TD]
[/TR]
</tbody>[/TABLE]
The new columns look like this when I'm done formatting:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Title[/TD]
[TD]Name B[/TD]
[TD]Name C[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Title[/TD]
[TD]Name A[/TD]
[TD]Name C[/TD]
[/TR]
[TR]
[TD]Serial[/TD]
[TD]Date[/TD]
[TD]Title[/TD]
[TD]Name A[/TD]
[TD]Name B[/TD]
[/TR]
</tbody>[/TABLE]
Here is what my repetitive action looks like when I record it as a macro:
Sub Macro4()'
' Macro4 Macro
'
'
Rows("3:3").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Rows("4:4").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("C5").Select
Selection.Copy
Range("C3:C4").Select
Range("C4").Activate
ActiveSheet.Paste
Range("D5").Select
Application.CutCopyMode = False
Selection.Copy
Range("D4").Select
ActiveSheet.Paste
Range("E5").Select
Application.CutCopyMode = False
Selection.Copy
Range("D3").Select
ActiveSheet.Paste
Range("F5").Select
Application.CutCopyMode = False
Selection.Copy
Range("E3:E4").Select
ActiveSheet.Paste
Range("F5").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
End Sub