![]() |
#5
|
||||
|
||||
![]()
Set a range to the selection and process the paragraphs in the range e.g.
Code:
Sub Macro2() Dim oPara As Paragraph Dim oRng As Range, oSel As Range Set oSel = Selection.Range For Each oPara In oSel.Paragraphs If oPara.Style Like "List*" Then Set oRng = oPara.Range oRng.Collapse 1 oRng.MoveEndUntil Chr(32) oRng.End = oRng.End + 1 oRng.Text = "" End If Next oPara lbl_Exit: Set oPara = Nothing Set oRng = Nothing Set oSel = Nothing Exit Sub End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Helend269 | Word VBA | 5 | 01-09-2018 12:08 PM |
Auto numbering macro | desireemm1 | Word | 1 | 12-10-2015 07:50 PM |
![]() |
Stokkers | Word | 1 | 06-12-2013 04:21 AM |
![]() |
socomfort | Word | 2 | 05-28-2012 04:19 PM |
![]() |
tinfanide | Word VBA | 3 | 04-27-2012 09:48 AM |