WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Text form fields lose data after bookmark delete

 
   Home -> Office -> Mail RSS
Next:  Turn off "auto fit" in Smart Art Graphi..  
Author Message
russb

External


Since: Sep 07, 2008
Posts: 1



(Msg. 1) Posted: Sun Sep 07, 2008 9:06 pm
Post subject: Text form fields lose data after bookmark delete
Archived from groups: microsoft>public>word>mail (more info?)

Hi there

I have developed a template which has text form fields, sections and
bookmarks. Additional functionality includes a toolbar from which the user
can delete some sections and bookmarks. Here is a sample pf the code;

Me.Unprotect "xxx"
Me.Bookmarks("manager").Range.Select
Me.Bookmarks("SectionFacility").Range.Delete
Me.Protect wdAllowOnlyFormFields, , "xxx"

The relevant bookmark is successfully deleted but all the text form fields
lose the data previously entered. This is not the desired effect. Any advice?

Thanks in advance
Russ
Back to top
Login to vote
macropod

External


Since: Jul 02, 2008
Posts: 684



(Msg. 2) Posted: Mon Sep 08, 2008 4:51 pm
Post subject: Re: Text form fields lose data after bookmark delete [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Russ,

You need to invoke NoReset when you re-protect the form:

Me.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, Password:="xxx"


--
Cheers
macropod
[MVP - Microsoft Word]


"russb" <russb DeleteThis @discussions.microsoft.com> wrote in message news:2A685EC2-C231-439D-8DAD-374A4AA99F2E@microsoft.com...
> Hi there
>
> I have developed a template which has text form fields, sections and
> bookmarks. Additional functionality includes a toolbar from which the user
> can delete some sections and bookmarks. Here is a sample pf the code;
>
> Me.Unprotect "xxx"
> Me.Bookmarks("manager").Range.Select
> Me.Bookmarks("SectionFacility").Range.Delete
> Me.Protect wdAllowOnlyFormFields, , "xxx"
>
> The relevant bookmark is successfully deleted but all the text form fields
> lose the data previously entered. This is not the desired effect. Any advice?
>
> Thanks in advance
> Russ
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Mail All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET