Merging Scenario

M

Malik Al-Amin

Here's my situation. I have two documents. The first is formatted as
follows:
1. PreConditions
1.1. UCR332.1 Client Relationship is known.
1.2. UCR332.32 SA or PA has completed logon and initiated
UCR47 - AccessOnline Reporting.
1.3. UCR332.2 SA or PA has entitlement to run this report.
1.4. UCR332.33 SA or PA has selected the Transaction Approval
Status Report.
2. PostConditions
2.1. SA or PA has successfully run this report.
3. Flow of Events
3.1. Basic Flow


The second one is formatted as follows:
UCR332.1: Client Relationship is known.

UCR332.32: SA or PA has completed logon and initiated UCR47 - AccessOnline
Reporting.

UCR332.2: SA or PA has entitlement to run this report.

BR6534: The user must have the 'Client Administration Reports' entitlement
enabled.

UCR332.33: SA or PA has selected the Transaction Approval Status Report.

BR2883: The report will be part of the report group - Program Management

BR2889: The report will be part of the report subgroup - Administration

BR5267: Display the report list description as 'Transaction Approval Status
for Cardholder Accounts'.



My third document need to loop through document one and take a value such as
"UCR332.33 SA or PA has selected the Transaction Approval Status Report". It
needs to write that to a third document. Also I need to look for that value
in document 2. If the value in document 2 has any sub values (BR2883,
BR2889, BR5267) They need to be copied to the third document as well. The
result will look like:



UCR332.33 SA or PA has selected the Transaction Approval Status Report.

BR2883: The report will be part of the report group - Program Management

BR2889: The report will be part of the report subgroup - Administration

BR5267: Display the report list description as 'Transaction Approval
Status for Cardholder Accounts'.



This process needs to continue until the entire document one has been looped
through. What is the best way to loop through document 2? I'm use to the do
until end of file construct from vb. I don't quite know how to handle this
with word vba.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top