View Single Post
 
Old 05-05-2021, 10:03 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

In which case:
Code:
Sub Demo(StartPos As Long, EndPos As Long)
With ActiveDocument
  .Range(StartPos, EndPos).Cut
  .Range.Paste
End With
End Sub
You 'other macro' still has to know something about the content before it can pass anything meaningful about the starting & end positions...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote