VB/Word - Making lines read only
From: Phillip Wu (pwu_at_qantas.com.au)
Date: 08/27/04
- Next message: Jezebel: "Re: Storing large amounts of (hidden) data within a single word document?"
- Previous message: Word Heretic: "Re: Retrieving the Auto Number"
- Next in thread: Jezebel: "Re: VB/Word - Making lines read only"
- Reply: Jezebel: "Re: VB/Word - Making lines read only"
- Messages sorted by: [ date ] [ thread ]
Date: 26 Aug 2004 21:59:04 -0700
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
- Next message: Jezebel: "Re: Storing large amounts of (hidden) data within a single word document?"
- Previous message: Word Heretic: "Re: Retrieving the Auto Number"
- Next in thread: Jezebel: "Re: VB/Word - Making lines read only"
- Reply: Jezebel: "Re: VB/Word - Making lines read only"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|