S
sun tea
Hi
I have a document with two sections. The upper section has shapes on it and some controls that modify the shapes with VBA. The lower part of the document has a form on it and is protected for form editing only. I added a continuous section to separate the two sections of my form and have section 2 that has the form selected in the document protection.
I also have a text box in the Header of the document that is being changed with VBA when the shapes in the first section change. When I start protection on the document the text box in the header area is no longer editable.
I use the following code to change the text box in the header area.
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Shapes(TITLE_TEXT_BOX_NAME).TextFrame.TextRange.Text = "some text"
When I protect the document applying protection to section 2 only this lineof code generates an error saying the document is protected.
Any help would be appreciated.
Thanks
Sun Tea
I have a document with two sections. The upper section has shapes on it and some controls that modify the shapes with VBA. The lower part of the document has a form on it and is protected for form editing only. I added a continuous section to separate the two sections of my form and have section 2 that has the form selected in the document protection.
I also have a text box in the Header of the document that is being changed with VBA when the shapes in the first section change. When I start protection on the document the text box in the header area is no longer editable.
I use the following code to change the text box in the header area.
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Shapes(TITLE_TEXT_BOX_NAME).TextFrame.TextRange.Text = "some text"
When I protect the document applying protection to section 2 only this lineof code generates an error saying the document is protected.
Any help would be appreciated.
Thanks
Sun Tea