Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting text in Word 97 protected form fields

Status
Not open for further replies.

JillT

Programmer
Oct 29, 2001
13
GB
I am creating an on-line which which requires the user to change the font to strikeout and back to normal in a form field.

I planned to use 2 buttons on the toolbar to run macros; the first to turn protection off and change the font style to strikeout; the second to turn protection back on, retaining the data and changing back to normal style.

However, when the second macro runs, the whole form field is selected and I can't get the cursor to move to the end of the text which is formatted to strikeout to allow the user to continue in normal style.

This seems such a simple thing to do, but is driving me mad!
 
Hi,
Don't have much experience with Word VBA, but doing some sleuthing in the object browser, this may give you a tack....
FormField.Range.Characters
If you look at the Characters Collection in Help, you may find something that you could use -- perhapse the InsertAfter Method to add characters to a Range Object.

Sorry that I can't be of mor help. :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top