P
Phillip Wu
Hi,
I'm trying to write an Visual Basic application that starts Microsoft
Word to allow a user to edit a text file.
However the first line is a header and the last line is a trailer and
I don't want the user to delete these lines. Also when the user exits
from Word (closes the file or exits Word) I want the control to be
returned to the VB application so that I can update the trailer.
I am new to VB with Word so please bear with me. There are not many
resources on the Web to assist.
What I need to know is:
1) Is there an easy way to make the line read-only? Line in this case
is the same as the Sentences object. If not would I have to trap all
the insert/replace/delete events and beep if the user is on the first
or last line?
2) Is there some sample code showing how I can start Word in VB AND
take back control when the user closes the file?
Thanks for any assistance
I'm trying to write an Visual Basic application that starts Microsoft
Word to allow a user to edit a text file.
However the first line is a header and the last line is a trailer and
I don't want the user to delete these lines. Also when the user exits
from Word (closes the file or exits Word) I want the control to be
returned to the VB application so that I can update the trailer.
I am new to VB with Word so please bear with me. There are not many
resources on the Web to assist.
What I need to know is:
1) Is there an easy way to make the line read-only? Line in this case
is the same as the Sentences object. If not would I have to trap all
the insert/replace/delete events and beep if the user is on the first
or last line?
2) Is there some sample code showing how I can start Word in VB AND
take back control when the user closes the file?
Thanks for any assistance