Word Duplicate line macro

2007/04/17 by Lassi A. Liikkanen

Word Macro to Duplicate a Line

Tested with Word 2002 (XP). Duplicates the paragraph in which the cursor currently is by pasting it below. Could be improved, but works OK for me. I would bind this to Ctrl+D

Sub DuplicateLine()
' Macro recorded 4/16/2007 by Lassi A. Liikkanen
   Selection.MoveRight Unit:=wdCharacter, Count:=1
   Selection.PasteAndFormat (wdPasteDefault)
   Selection.MoveUp Unit:=wdParagraph, Count:=2
End Sub

Related content:
How Windows 7 restore really works, 2014/04/26

Instructions for creating bootable Windows 7 recovery environment on a USB flash device, 2014/03/30

Disabling background software installations and upgrades in Windows, 2013/03/03

No comments for this page:
Add comment | Show all comments

Your email will not be shown publicly or disclosed to third parties, it is used to validate messages
Location (City, Country):
* This information must be provided

Keywords: [windows] , [computers] Document's status: Ok (Document dates explained)

This document created: 2007/04/17
Modified: 2007/04/17
Published: (date missing / pvm. puuttuu)

This document's permanent URI (linking):

© Lassi A. Liikkanen 2007 - 2021. All rights reserved.

*Change layout:
Printable printable
Large text


@lassial Twitter feed: