> I'm wondering whether it's possible or not to do the following. In word
> you can choose the font size (9-10-11-12-13-....-72) and you even can
[quoted text clipped - 3 lines]
> How can I do that --> give rights selection but no right edition.
> I have also ADS, but the word11.adm does not offer this solution.
Hello Cindy,
Thanks for your answer. I'm a developper sometimes, but not in this
case. I spend 80% of my time as a system Engineer. I have some needs in
my company, and there is one relating to word. How to block the fact a
user can write inside the font size. We just want to let them choose the
size provided by word, without being able to add 13.5 for example.
It is very important, because word is related to another app which
freezes because does not understand the new sizes.
In which forum do you think I could post my needs...?
Ta very much
Cindy M -WordMVP- wrote:
> Hi Paul,
>
[quoted text clipped - 23 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M -WordMVP- - 20 Jan 2006 14:32 GMT
Hi Paul,
> I'm a developper sometimes, but not in this
> case. I spend 80% of my time as a system Engineer. I have some needs in
[quoted text clipped - 4 lines]
> freezes because does not understand the new sizes.
>
These sizes aren't "new". One has been able to type in a font size to a
half measurement for over ten years...
> In which forum do you think I could post my needs...?
One of the Word.vba groups would probably be the best place to get a
broader discussion going. You're not going to be able to lock what the user
can type into the dialog box; Word doesn't provide an interface to control
the dialog boxes at that level.
You could provide a template Addin in the users' Startup folder (or have
users use a special template for documents that work with this special
application, so that they can use Word normally for other purposes). This
template can do the following:
1. Contain a procedure named FormatFont. This will execute when the user
tries to display the Format/Font dialog box, and let you control what
happens BEFORE and AFTER the dialog box. This means you'd need to take care
of applying ALL the formatting that can be defined in the dialog box. Brief
example:
Sub FormatFont
Dim rng as Word.range
Set rng = Selection.Range
With Dialogs(wdDialogFormatFont)
If .Display <> 0 Then 'Not cancelled
rng.Font.Size = Int(.Points)
rng.Font.Name = .Font
rng.Font.Color = .Color
End If
End With
End Sub
2. Replace the combobox in the Formatting toolbar with your own control so
that you can choose what's allowed (just a list, or a macro that cuts off
the decimal - whatever you need)
3. Any other things you want to control yourself.
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 :-)