I am new to VBA programming and need a little help with a Word 97 macro. Here is a sample of my Word Document:
DATE: 9/13/02
PAGE: 1
TIME: 7:27:27
MEMBER NAME: AR770C
MEMBER TYPE: CLP
...
...
The excerpt above is found on the top of every page. I need to determine what the value of the MEMBER TYPE is. In the above example it is CLP. I would like the Macro to do the following:
Start at the first line of the document.
Read every line.
When you come to a new page, find the line that contains MEMBER TYPE
Determine the value of MEMBER TYPE
Store this value in a variable (temp)
If (temp=CLP)
Do this code
Else
Do this code
End If
Any help would be appreciated. Thanks in advance.
DATE: 9/13/02
PAGE: 1
TIME: 7:27:27
MEMBER NAME: AR770C
MEMBER TYPE: CLP
...
...
The excerpt above is found on the top of every page. I need to determine what the value of the MEMBER TYPE is. In the above example it is CLP. I would like the Macro to do the following:
Start at the first line of the document.
Read every line.
When you come to a new page, find the line that contains MEMBER TYPE
Determine the value of MEMBER TYPE
Store this value in a variable (temp)
If (temp=CLP)
Do this code
Else
Do this code
End If
Any help would be appreciated. Thanks in advance.