Sub DuplicateLine()
Selection.MoveUp Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Copy
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.Paste
End Sub
This is a module where a duplicateline generates below as soon as macro is trigerred. It was working perfectly on ms word 2016. But on ms word 2024 this macros not working. It is Giving a runtime error. Please Help
I didn’t try Anything. I need help
New contributor
Rajib Hassan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.