View Single Post
 
Old 10-01-2023, 07:02 AM
RobiNew RobiNew is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Sep 2023
Posts: 208
RobiNew is on a distinguished road
Default

Hi Vivka! The code here below works ALWAYS. Thank you for your suggestions!



Quote:
Sub NoSpaceBetweenPara()
Dim aRng As Range, iType As Integer
Dim Para As Paragraph
On Error GoTo Leave 'if no footnotes
For iType = 1 To 2
Set aRng = ActiveDocument.StoryRanges(iType)
ActiveDocument.StoryRanges.Item(iType).Select
With Dialogs(wdDialogFormatParagraph)
.NoSpaceBetweenParagraphsOfSameStyle = False
.Execute
End With
Next
Selection.HomeKey Unit:=wdStory
Leave:
End Sub
Reply With Quote