View Single Post
 
Old 11-04-2023, 08:56 AM
vivka vivka is offline Windows 7 64bit Office 2016
Expert
 
Join Date: Jul 2023
Posts: 293
vivka is on a distinguished road
Default

RobiNew, replace

Set oRng = selection.range
with
Set oRng = ActiveDocument.range

and the macro will work on the whole doc. Or maybe I don't quite understand your point.
Reply With Quote