J
Jason
Hi,
I am creating a macro that will take a text file of many
records separated by section breaks. This file comes from
Wordperfect, so instead if Endfields, I have paragraph
marks. I need to make this file into a data source for
different shell docs. So far I have a macro that replaces
all the paragraph marks with tab characters (I would use
commas, but there are commas in the records already for
monetary amounts), then the macro replaces each section
break with a paragraph mark. Finally, the macro types the
fields that will be used as the headings for the data
source. The only problem I am running into now is that
the final data field has a paragraph marker after it, so
when I have that replaced with a tab character it produces
more fields than are in the header. This is a problem
with the final merge because it says there are too many
fields. Is there a way create a macro that will go to the
final line of the record and remove only that one
paragraph marker while keeping the section break? Here is
what it looks like before conversion:
046<p>
Mr. John Doe, Superintendent<p>
Community Unit School District 1<p>
1212 State<p>
Springfield, MO 62360<p>
<p>
Hannel<p>
772-001-003/S03<p>
construction of an addition to the Elementary School for
160 students in PreK-6th grades, along with health, life-
safety improvements to the 1917 and 1921 portions of the
school determined to be functionally over 100 years old<p>
#,###,553<p>
#,###,031<p>
###,522<p>
01 elementary grant index of .733019<p>
093<p>
47<p>
Adams<p>
Payson Community Unit School District 1<p><section break>
The macro I have created so far converts the file into this
Field1<t>Field2<t>Field3<t>, and so on
Mr.John Doe, Superintendant<t>Community School<t>and so on
The files range in size from 11 records to 73. Any help
would be much appreciate.
TIA,
Jason
I am creating a macro that will take a text file of many
records separated by section breaks. This file comes from
Wordperfect, so instead if Endfields, I have paragraph
marks. I need to make this file into a data source for
different shell docs. So far I have a macro that replaces
all the paragraph marks with tab characters (I would use
commas, but there are commas in the records already for
monetary amounts), then the macro replaces each section
break with a paragraph mark. Finally, the macro types the
fields that will be used as the headings for the data
source. The only problem I am running into now is that
the final data field has a paragraph marker after it, so
when I have that replaced with a tab character it produces
more fields than are in the header. This is a problem
with the final merge because it says there are too many
fields. Is there a way create a macro that will go to the
final line of the record and remove only that one
paragraph marker while keeping the section break? Here is
what it looks like before conversion:
046<p>
Mr. John Doe, Superintendent<p>
Community Unit School District 1<p>
1212 State<p>
Springfield, MO 62360<p>
<p>
Hannel<p>
772-001-003/S03<p>
construction of an addition to the Elementary School for
160 students in PreK-6th grades, along with health, life-
safety improvements to the 1917 and 1921 portions of the
school determined to be functionally over 100 years old<p>
#,###,553<p>
#,###,031<p>
###,522<p>
01 elementary grant index of .733019<p>
093<p>
47<p>
Adams<p>
Payson Community Unit School District 1<p><section break>
The macro I have created so far converts the file into this
Field1<t>Field2<t>Field3<t>, and so on
Mr.John Doe, Superintendant<t>Community School<t>and so on
The files range in size from 11 records to 73. Any help
would be much appreciate.
TIA,
Jason