Help!

Override Built-in Numbered Style (Word 2003)

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Numbering RSS
Next:  Restrict Data Entry to Text  
Author Message
Carl
External


Since: Mar 04, 2006
Posts: 83



PostPosted: Mon Jun 01, 2009 4:01 am    Post subject: Override Built-in Numbered Style (Word 2003)
Archived from groups: microsoft>public>word>numbering (more info?)

I'm wondering if anyone can help. I'm sure at one point I came across an
article about re-defining the built-in Numbered style. So, when you wanted
the users to click on the 123 button in the toolbar, you get your custom
Numbered list, rather than Words version. I have tried adding the 'Numbered'
style to normal.dot but it doesn't work.

Do you have a way of doing this or is it just not possible?
--
Carl
VBA/ASP/ASp.Net Programmer and Project support
Back to top
Stefan Blom
External


Since: May 08, 2009
Posts: 214



PostPosted: Mon Jun 01, 2009 8:10 am    Post subject: Re: Override Built-in Numbered Style (Word 2003) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

A relatively simple solution is the following: Modify the List Number style
to suit your needs. Then put the below macro in the Normal template; the
macro intercepts the FormatNumberDefault command, which is run whenever a
person clicks the Number button on the toolbar.

Sub FormatNumberDefault()

Dim BulletStyleName As String
Dim AppliedStyleName As String
BulletStyleName = _
ActiveDocument.Styles(wdStyleListNumber).NameLocal
AppliedStyleName = Selection.Paragraphs(1).Style.NameLocal
If BulletStyleName = AppliedStyleName Then
Selection.Style = wdStyleNormal
'If you prefer Body Text, use wdStyleBodyText instead
Else
Selection.Style = BulletStyleName
End If

End Sub

The macro applies the List Number style if the first paragraph in the
selection does not have that style applied. Otherwise it applies the Normal
style.

If you need installation assistance, see
http://www.gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP



"Carl" <Carl.DeleteThis@discussions.microsoft.com> wrote in message
news:EFB9E0D9-7E9C-46CE-B8E6-FC6E0D72B692@microsoft.com...
> I'm wondering if anyone can help. I'm sure at one point I came across an
> article about re-defining the built-in Numbered style. So, when you
> wanted
> the users to click on the 123 button in the toolbar, you get your custom
> Numbered list, rather than Words version. I have tried adding the
> 'Numbered'
> style to normal.dot but it doesn't work.
>
> Do you have a way of doing this or is it just not possible?
> --
> Carl
> VBA/ASP/ASp.Net Programmer and Project support
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Numbering All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum