A
a
I need to manipulate an excel file that contains relay results from a summer
swim leauge. I need to take a row that looks like this:
TEAM DATE MEET SWIMMER1 SWIMMER2 SWIMMER3 SWIMMER4
and turn it into 4 rows that look like this
SWIMMER1 TEAM DATE MEET
SWIMMER2 TEAM DATE MEET
SWIMMER3 TEAM DATE MEET
SWIMMER4 TEAM DATE MEET
I got as far as creating the macro below but it keeps going back to the same
line 6 and repeaqting the insert...
How do I modify this to go to the next line down?
Is it possible to loop the macro so that it will process all 1300 lines in
my spreadsheet?
The currnet Macro looks like:
Sub AMSA()
'
' AMSA Macro
' Macro recorded 7/7/2007 by cduchon
'
' Keyboard Shortcut: Ctrl+Shift+A
'
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Range("A6:C6").Select
Range("C6").Activate
Selection.Copy
Range("A7:C9").Select
ActiveSheet.Paste
Range("E6").Select
Application.CutCopyMode = False
Selection.Copy
Range("D7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("F6").Select
Application.CutCopyMode = False
Selection.Copy
Range("D8").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("G6").Select
Application.CutCopyMode = False
Selection.Copy
Range("D9").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A10").Select
End Sub
swim leauge. I need to take a row that looks like this:
TEAM DATE MEET SWIMMER1 SWIMMER2 SWIMMER3 SWIMMER4
and turn it into 4 rows that look like this
SWIMMER1 TEAM DATE MEET
SWIMMER2 TEAM DATE MEET
SWIMMER3 TEAM DATE MEET
SWIMMER4 TEAM DATE MEET
I got as far as creating the macro below but it keeps going back to the same
line 6 and repeaqting the insert...
How do I modify this to go to the next line down?
Is it possible to loop the macro so that it will process all 1300 lines in
my spreadsheet?
The currnet Macro looks like:
Sub AMSA()
'
' AMSA Macro
' Macro recorded 7/7/2007 by cduchon
'
' Keyboard Shortcut: Ctrl+Shift+A
'
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Selection.Insert Shift:=xlDown
Range("A6:C6").Select
Range("C6").Activate
Selection.Copy
Range("A7:C9").Select
ActiveSheet.Paste
Range("E6").Select
Application.CutCopyMode = False
Selection.Copy
Range("D7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("F6").Select
Application.CutCopyMode = False
Selection.Copy
Range("D8").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("G6").Select
Application.CutCopyMode = False
Selection.Copy
Range("D9").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("A10").Select
End Sub