View Single Post
 
Old 03-06-2022, 01:50 AM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,469
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Could you explain to me what these lines of code do?
1. Try deleting or commenting-out:
Code:
        .Split .Rows(r)
and see what happens.

2. The line:
Code:
      r = ((i - 1) / NumCols + 1) * 3 - 2
tells Word how many rows to go down on each iteration.

Quote:
Bold this part of the only:
After:
Code:
            .Characters.Last.Previous = vbNullString
insert:
Code:
            .Collapse wdCollapseStart
            .MoveEndUntil ":"
            .End = .End + 1
            .Style = wdStyleStrong
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote