Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 01-19-2021, 11:30 PM
Cendrinne's Avatar
Cendrinne Cendrinne is offline Dot Leader in 1 or all Table of Column 1, Help!!!!! Windows 10 Dot Leader in 1 or all Table of Column 1, Help!!!!! Office 2019
Competent Performer
Dot Leader in 1 or all Table of Column 1, Help!!!!!
 
Join Date: Aug 2019
Location: Montreal Quebec Canada
Posts: 200
Cendrinne is on a distinguished road
Default

Found that too. I've done all manually, but tweaked it with scripts from other tables and rows.

Code:
Sub Create_Dot_Leader_1Tbl_Col_1_SpacedOut()
    Application.ScreenUpdating = False
    Dim oTbl As Table
    Dim oRow As Row
    Dim oCell As cell

  Set oTbl = Selection.Tables(1)
    With Selection.ParagraphFormat
        .TextboxTightWrap = wdTightNone
        .CollapsedByDefault = False
    End With
    Selection.ParagraphFormat.TabStops.ClearAll
    ActiveDocument.DefaultTabStop = InchesToPoints(0.25)
    Selection.ParagraphFormat.TabStops.Add Position:=InchesToPoints(5.25), _
        Alignment:=wdAlignTabRight, Leader:=wdTabLeaderDots
    
  oTbl.Columns(1).Select
  For Each oRow In oTbl.Rows
    
    Selection.SelectRow
    Selection.HomeKey Unit:=wdLine
    Selection.EndKey Unit:=wdLine
    Selection.TypeText Text:=vbTab
    Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
    With Selection.Font
        .Bold = False
        .Color = wdColorAutomatic
        .Superscript = False
        .Subscript = False
        .Spacing = 2
        .Scaling = 100
        .Position = 0
    End With
    Selection.Move Unit:=wdRow, Count:=1
    
    Next oRow
     On Error Resume Next

    Application.ScreenUpdating = True

    On Error GoTo 0

End Sub
Reply With Quote
 

Tags
dot leader table column 1

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents with authors and leader dots nanoboy Word 2 07-18-2017 01:04 PM
Dot Leader in 1 or all Table of Column 1, Help!!!!! Dot spacing tab leader in automatic Table of Contents Beunhaas Word 1 11-25-2015 10:27 AM
Dot Leader in 1 or all Table of Column 1, Help!!!!! Format tab leader in “Table of figures” separate from text? WTR_girl12 Word 1 09-03-2015 10:48 AM
Dot Leader in 1 or all Table of Column 1, Help!!!!! Table of contents 2nd line dot leader right tab failure Tsingher Word 2 01-18-2015 09:21 AM
Dot Leader in 1 or all Table of Column 1, Help!!!!! Dot leader in table cells BeerStud Word 11 04-02-2014 07:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft