Allowing font formating in a protected document

S

Steve

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)
 
H

Harold Kless[MSFT}

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
(e-mail address removed)

--


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top