fredrique
05-06-2005, 01:50 AM
Hi,
i would like to have a textfield
({includetext "Doc1.doc" MyName \*charformat}, which means that i include a text(bookmarked text called MyName) into a my document called from Doc1.doc)
i need text to be located in a specific location on the document(Verticaly in the left handside) and this text(field) need to be repeted in all other pages of the document.
what i did was, i added a text box and i placed the texfield in it. this allow the text to be repeted in all other pages. and when i run a macro for updating the field in the textbox, the update is performed succesfully.
This is the code that i use for updating:
'ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
'Selection.HeaderFooter.Shapes("Text Box 3").Select
'Selection.Fields.Update
RQ: this code i valid just when the document is not Protected
RQ: is use Word 2002
The Problem:
When i protect the documents (with/without passoword). the update can not be performed. this is basically because there is not ActiveWindow when document is protected.
i would like to update my textfield normally, even if the document is locked.
any help On This :mkay
thanks alot
Fredrique
i would like to have a textfield
({includetext "Doc1.doc" MyName \*charformat}, which means that i include a text(bookmarked text called MyName) into a my document called from Doc1.doc)
i need text to be located in a specific location on the document(Verticaly in the left handside) and this text(field) need to be repeted in all other pages of the document.
what i did was, i added a text box and i placed the texfield in it. this allow the text to be repeted in all other pages. and when i run a macro for updating the field in the textbox, the update is performed succesfully.
This is the code that i use for updating:
'ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
'Selection.HeaderFooter.Shapes("Text Box 3").Select
'Selection.Fields.Update
RQ: this code i valid just when the document is not Protected
RQ: is use Word 2002
The Problem:
When i protect the documents (with/without passoword). the update can not be performed. this is basically because there is not ActiveWindow when document is protected.
i would like to update my textfield normally, even if the document is locked.
any help On This :mkay
thanks alot
Fredrique