I
I''ve a feeling I''m not in Unix Anymore
I have 8,000 ASCII records that I have imported into Word and am reformatting
to drop into a database. The information I'm currently working with on each
record is the name which appears in the record header and a list of
instruments. Each record ends with a manual page break. Some of the
instrument lists are so long they've broken across pages. A simplified
version of the record format is:
Record1
Name1: some name
%$%->Instrument1a
%$%->Instrument1b
%$%->Instrument1c
<Manual Page Break>
Record2
Name2: another name
%$%->Instrument2a
%$%->Instrument2b
%$%->Instrument2c
<Automatic page Break>
%$%->Instrument2d
<Manual Page Break>
Can anyone help me figure out how to take the name that's on a given record
and use it to replace the %$% character sequence at the beginning of each
instrument line for that same record only? I'm new to VBA and although I
understand how to code a find & replace, I can't figure out how to get the
replace text to change to the new name when I change records. (Using an
array is out of the question due to the large number of records I'm dealing
with.)
Here are the results I need:
Record1
Name1: some name
some name->Instrument1a
some name->Instrument1b
some name->Instrument1c
<Manual Page Break>
Record2
Name2: another name
another name->Instrument2a
another name->Instrument2b
another name->Instrument2c
<Automatic Page Break>
another name->Instrument2d
<Manual Page Break>
Thank you in advance!
to drop into a database. The information I'm currently working with on each
record is the name which appears in the record header and a list of
instruments. Each record ends with a manual page break. Some of the
instrument lists are so long they've broken across pages. A simplified
version of the record format is:
Record1
Name1: some name
%$%->Instrument1a
%$%->Instrument1b
%$%->Instrument1c
<Manual Page Break>
Record2
Name2: another name
%$%->Instrument2a
%$%->Instrument2b
%$%->Instrument2c
<Automatic page Break>
%$%->Instrument2d
<Manual Page Break>
Can anyone help me figure out how to take the name that's on a given record
and use it to replace the %$% character sequence at the beginning of each
instrument line for that same record only? I'm new to VBA and although I
understand how to code a find & replace, I can't figure out how to get the
replace text to change to the new name when I change records. (Using an
array is out of the question due to the large number of records I'm dealing
with.)
Here are the results I need:
Record1
Name1: some name
some name->Instrument1a
some name->Instrument1b
some name->Instrument1c
<Manual Page Break>
Record2
Name2: another name
another name->Instrument2a
another name->Instrument2b
another name->Instrument2c
<Automatic Page Break>
another name->Instrument2d
<Manual Page Break>
Thank you in advance!