Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Menus and Toolbars / January 2006

Tip: Looking for answers? Try searching our database.

Font size customisation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Martel - 18 Jan 2006 09:00 GMT
Hi everybody,

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
customize it to 11.5-12.5-.....-72.5. Will it be possible to only let
people use the font size, without letting them the possiblity to
personalize it to ".5" values.
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.
Any idea in word?

Thank you very much...
Cindy M  -WordMVP- - 19 Jan 2006 16:33 GMT
Hi Paul,

> 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.

It's not really clear in what terms you're thinking. I get the impression
you're a developer? Which environment? Are you aware you're posting in a
purely end-user newsgroup?

FWIW, Word provides no way for you to control what it offers in its own
dialog boxes. To get this fine a level of control you'd have to replace
Word's functionality with your own Forms. That, or check the document at
some key point (on save or print, for example) for unallowed font sizes
and change them.

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 :-)
Paul Martel - 20 Jan 2006 09:36 GMT
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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.