I have a file that contains multiple records ending with the text "START". I am looking for a way to perform a conditional select and paste if the line or lines below contain a 4-digit year at the end of the record. All fields are fixd length.
Data Before:
Afield1 Afield2 Afield3 START
2005
2006
Bfield1 Bfield2 Bfield3 START
2003
2004
2005
2006
Data After:
Afield1 Afield2 Afield3 START
Afield1 Afield2 Afield3 2005
Afield1 Afield2 Afield3 2006
Bfield1 Bfield2 Bfield3 START
Bfield1 Bfield2 Bfield3 2003
Bfield1 Bfield2 Bfield3 2004
Bfield1 Bfield2 Bfield3 2005
Bfield1 Bfield2 Bfield3 2006
I would appreciate any help in writing a macro to perform this function.
Thanks...
Data Before:
Afield1 Afield2 Afield3 START
2005
2006
Bfield1 Bfield2 Bfield3 START
2003
2004
2005
2006
Data After:
Afield1 Afield2 Afield3 START
Afield1 Afield2 Afield3 2005
Afield1 Afield2 Afield3 2006
Bfield1 Bfield2 Bfield3 START
Bfield1 Bfield2 Bfield3 2003
Bfield1 Bfield2 Bfield3 2004
Bfield1 Bfield2 Bfield3 2005
Bfield1 Bfield2 Bfield3 2006
I would appreciate any help in writing a macro to perform this function.
Thanks...