Is it possible to allow a user to enter text into a
protected document form field and then allow them to
selectively format specific words? (i.e. to use functions
such as Bold and Underline)

RE: Allowing font formating in a protected document by haroldk

haroldk
Tue Aug 12 17:11:36 CDT 2003

Hi Steve,
You can write a macro that will format selected text in a protect form but
the code will have to unprotect the document then do the formatting and
finally reprotect the document.

This article has sample code to unprotect then reprotect a document.
You would add your formatting code in between the unprotect and reprotect.
You could use something like this:
Selection.Range.Font.Bold = True.
Then you could assign the onAction property of the button to the macro. The
user would click this custom button to make the selected text bold.

191028 WD2000: How to Retain Information Typed into a Form Field When You
http://support.microsoft.com/default.aspx?scid=kb;[LN];Q191028


Harold Kless, MCSD
Support Professional
Microsoft Technical Support for Business Applications
haroldk@microsoft.com

--


This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.


RE: Allowing font formating in a protected document by Steve

Steve
Wed Aug 13 02:29:15 CDT 2003

Thank you..............Steve


>-----Original Message-----
>Hi Steve,
>You can write a macro that will format selected text in a
protect form but
>the code will have to unprotect the document then do the
formatting and
>finally reprotect the document.
>
>This article has sample code to unprotect then reprotect
a document.
> You would add your formatting code in between the
unprotect and reprotect.
>You could use something like this:
>Selection.Range.Font.Bold = True.
>Then you could assign the onAction property of the button
to the macro. The
>user would click this custom button to make the selected
text bold.
>
>191028 WD2000: How to Retain Information Typed into a
Form Field When You
>http://support.microsoft.com/default.aspx?scid=kb;
[LN];Q191028
>
>
>Harold Kless, MCSD
>Support Professional
>Microsoft Technical Support for Business Applications
>haroldk@microsoft.com
>
>--
>
>
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>Use of included script samples are subject to the terms
specified at
>http://www.microsoft.com/info/cpyright.htm
>
>Note: For the benefit of the community-at-large, all
responses to this
>message are best directed to the newsgroup/thread from
which they
>originated.
>
>.
>