How to create toll bar in word 2007

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamlesh21630
    New Member
    • Nov 2013
    • 16

    #1

    How to create toll bar in word 2007

    In earlier vision of word 2000/03 there was a future to create toll bar with buttons in add-ins but in 2007 how to create that.

    ribbon also we can say.
  • kamlesh21630
    New Member
    • Nov 2013
    • 16

    #2
    Any one need plz help!!

    Code:
    Sub Section()
    '
    ' Section Macro
    ' Macro recorded 11/15/2013 by sharma.anil
    '
        ActiveDocument.Styles.Add Name:="Section", Type:=wdStyleTypeParagraph
        ActiveDocument.Styles("Section").AutomaticallyUpdate = False
        With ActiveDocument.Styles("Section").Font
            .Name = "Times New Roman"
            .Size = 12
            .Bold = False
            .Italic = False
            .Underline = wdUnderlineNone
            .UnderlineColor = wdColorAutomatic
            .StrikeThrough = False
            .DoubleStrikeThrough = False
            .Outline = False
            .Emboss = False
            .Shadow = False
            .Hidden = False
            .SmallCaps = False
            .AllCaps = False
            .Color = wdColorAutomatic
            .Engrave = False
            .Superscript = False
            .Subscript = False
            .Scaling = 100
            .Kerning = 0
            .Animation = wdAnimationNone
        End With
        With ActiveDocument.Styles("Section").ParagraphFormat
            .LeftIndent = InchesToPoints(0)
            .RightIndent = InchesToPoints(0)
            .SpaceBefore = 0
            .SpaceBeforeAuto = False
            .SpaceAfter = 0
            .SpaceAfterAuto = False
            .LineSpacingRule = wdLineSpaceSingle
            .Alignment = wdAlignParagraphLeft
            .WidowControl = True
            .KeepWithNext = False
            .KeepTogether = False
            .PageBreakBefore = False
            .NoLineNumber = False
            .Hyphenation = True
            .FirstLineIndent = InchesToPoints(0)
            .OutlineLevel = wdOutlineLevelBodyText
            .CharacterUnitLeftIndent = 0
            .CharacterUnitRightIndent = 0
            .CharacterUnitFirstLineIndent = 0
            .LineUnitBefore = 0
            .LineUnitAfter = 0
        End With
        ActiveDocument.Styles("Section").ParagraphFormat.TabStops.ClearAll
        With ActiveDocument.Styles("Section").ParagraphFormat
            With .Shading
                .Texture = wdTextureNone
                .ForegroundPatternColor = wdColorAutomatic
                .BackgroundPatternColor = wdColorAutomatic
            End With
            .Borders(wdBorderLeft).LineStyle = wdLineStyleNone
            .Borders(wdBorderRight).LineStyle = wdLineStyleNone
            .Borders(wdBorderTop).LineStyle = wdLineStyleNone
            .Borders(wdBorderBottom).LineStyle = wdLineStyleNone
            With .Borders
                .DistanceFromTop = 1
                .DistanceFromLeft = 4
                .DistanceFromBottom = 1
                .DistanceFromRight = 4
                .Shadow = False
            End With
        End With
        ActiveDocument.Styles("Section").LanguageID = wdEnglishUS
        ActiveDocument.Styles("Section").NoProofing = False
        ActiveDocument.Styles("Section").Frame.Delete
        Selection.Style = ActiveDocument.Styles("Section")
    End Sub

    Comment

    Working...