#1   Report Post  
Posted to microsoft.public.word.docmanagement
Mary Ann Krupper
 
Posts: n/a
Default Fill-in forms

I need to allow the use of subscripts and superscripts in a Word fill-in
form. These would be in a field where a researcher submits and abstract that
contains super- or subscripts.

Thank you
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default Fill-in forms

Hi ?B?TWFyeSBBbm4gS3J1cHBlcg==?=,

I need to allow the use of subscripts and superscripts in a Word fill-in
form. These would be in a field where a researcher submits and abstract that
contains super- or subscripts.

this requires a macro that unprotects, applies the formatting, then reprotects
the document. Here's some sample code you can assign to a couple of toolbar
buttons. Note, however, that this won't work if the form fields are in a table
because the user can't select single characters in a form field in a table cell.

Sub FormFieldFormat()
Dim doc As Word.Document
Dim rng As Word.Range
Dim format As String

Set doc = ActiveDocument
Set rng = Selection.Range
format = CommandBars.ActionControl.Caption
If doc.ProtectionType wdNoProtection Then doc.Unprotect
Select Case format
Case "SuperScript"
rng.Font.SuperScript = wdToggle
Case "SubScript"
rng.Font.SubScript = wdToggle
Case Else
End Select
doc.Protect wdAllowOnlyFormFields, True
rng.Select
rng.Collapse wdCollapseEnd
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can I fill PDF forms in Word or other software? hugh jass Microsoft Word Help 15 August 18th 05 06:20 PM
can I fill PDF forms in Word or other software? hugh jass Page Layout 15 August 18th 05 06:20 PM
How can links be active with fill in forms as doc protection? NancyR Microsoft Word Help 1 August 15th 05 08:33 PM
forms to fill in on computer michel syl Microsoft Word Help 2 May 4th 05 05:35 AM
Using mailmerg to fill out forms to mail out Patrick Maxon Mailmerge 3 December 14th 04 02:34 AM


All times are GMT +1. The time now is 05:04 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"