View Single Post
 
Old 11-12-2023, 08:58 AM
Pallantir's Avatar
Pallantir Pallantir is offline Windows 10 Office 2007
Novice
 
Join Date: Nov 2023
Posts: 3
Pallantir is on a distinguished road
Default Can somebody help me with a macro to move a line two lines down?

I have to do some 20-30 page documents regularly, and they look like this (Norwegian text, but the main thing is "nøkkelord", which means "keyword" and is the same every time, plus a number (which is not a sequence):

Code:
nøkkelord 3
Det var en gange en nisse
som måtte tisse

Han hoppet over et gjerde,
der fant han ei pære

nøkkelord 2
den delte han i fem,
én, to, tre, fire, fem
So the keyword and the number isn't in all groups, but when it's there, I need it moved down so it ends up like this:

Code:
Det var en gange en nisse
som måtte tisse
nøkkelord 3

Han hoppet over et gjerde,
der fant han ei pære

den delte han i fem,
én, to, tre, fire, fem
nøkkelord 2
And that has to loop until the end of the document, so it takes all instances of this.

My boss is to cheap to get us anything newer than Office 2007, and it works for what we need it to do, so that's the format for it.

I have searched the web and this forum for hours this weekend, but I haven't found anything that works this way. Could somebody please help me out?
Reply With Quote