A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Delete a page in a protected form



 
 
Thread Tools Display Modes
  #1  
Old November 16th, 2005, 07:50 PM posted to microsoft.public.word.newusers
external usenet poster
 
Posts: n/a
Default Delete a page in a protected form

I am completing a Word form that was created by someone else. When I added
several lines of content into one of the form fields, a page break occurred
later in the document, creating an extra page in the form that I need to get
rid of. If I unprotect the document to delete the page break, I lose
everything I have already entered when I re-protect the form. Is there any
way to delete the extra page without unprotecting the document, or is there
some other way around this?

(I tried to post this question earlier but it looks as if it dod not go
through. I apologize in advance for any repeats.)
  #2  
Old November 16th, 2005, 08:16 PM posted to microsoft.public.word.newusers
external usenet poster
 
Posts: n/a
Default Delete a page in a protected form

Bejewell wrote:
I am completing a Word form that was created by someone else. When I
added several lines of content into one of the form fields, a page
break occurred later in the document, creating an extra page in the
form that I need to get rid of. If I unprotect the document to
delete the page break, I lose everything I have already entered when
I re-protect the form. Is there any way to delete the extra page
without unprotecting the document, or is there some other way around
this?

(I tried to post this question earlier but it looks as if it dod not
go through. I apologize in advance for any repeats.)


This is based on the instructions for reprotecting the document without
losing the field contents, at
http://word.mvps.org/FAQs/MacrosVBA/...lfResetOff.htm. Since you didn't
create this form, though, you need slightly different instructions so you
won't have to create a macro in the document.

After you unprotect the form and delete the extra page break, press Alt+F11
to open the macro editor. There, press Ctrl+G to open the Immediate window
in the lower right area. Copy this line and paste it into the Immediate
window:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, noreset:=True

With the cursor at the end of the line, press Enter. Then you can close the
macro editor and save the form.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print page footer only when needed Carl Rapson Setting Up & Running Reports 9 November 14th, 2005 08:57 PM
Move feild entries from form to form using global variables JackCGW General Discussion 11 November 14th, 2005 06:22 AM
Need Help In Printing Current Record in Specific Report RNUSZ@OKDPS Setting Up & Running Reports 1 May 16th, 2005 09:06 PM
Design help, please SillySally Using Forms 27 March 6th, 2005 05:11 AM
dlookup miaplacidus Using Forms 9 August 5th, 2004 09:16 PM


All times are GMT +1. The time now is 06:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.