Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering
Toggle Word Heading numbering Toggle Word Heading numbering
Toggle Word Heading numbering
Go Back  Xtreme Visual Basic Talk > > > > Toggle Word Heading numbering


Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2016, 09:18 AM
boy_plunder boy_plunder is offline
Newcomer
 
Join Date: Aug 2008
Posts: 24
Default Toggle Word Heading numbering


Hi All,

I have a Word report that the users want to be able to turn heading numbering On and Off (Heading numbering like 1., 1.1, 1.1.1 etc.) I can see that you could use ListTemplates, but does anyone have any suggestions about writing such a procedure?

I imagine two buttons on menu custom menu: 'Turn numbering on' and 'Turn numbering off'.
__________________
---
Reply With Quote
  #2  
Old 03-07-2016, 09:29 AM
boy_plunder boy_plunder is offline
Newcomer
 
Join Date: Aug 2008
Posts: 24
Default

I've been playing with this type of code, which seems to be in the right direction.
Quote:
Sub TurnOn()
With ActiveDocument.ListGalleries(wdNumberGallery).ListTemplates("ActisNum" ).ListLevels(3)
.NumberFormat = "%1."
.TrailingCharacter = wdTrailingTab
.NumberPosition = CentimetersToPoints(0.4)
.Alignment = wdListLevelAlignLeft
.TextPosition = InchesToPoints(0)
.TabPosition = InchesToPoints(0)
.StartAt = 1
End With
End Sub
__________________
---
Reply With Quote
Reply

Tags
heading, menu, numbering, suggestions, word, toggle


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering Toggle Word Heading numbering
Toggle Word Heading numbering
Toggle Word Heading numbering
 
Toggle Word Heading numbering
Toggle Word Heading numbering
 
-->