Word: macro para invertir orden de las paginas

Tengo un documento de 107 paginas pero estan al reves: la primera debe ser la ultima.
Macro para pasar las paginas del documento1 al documento2 en orden inverso.
Utiliza Cut & Paste, documento1 queda vacio al final, y da un error.
Macro muy mejorable, pero muy efectiva:
Sub invertirpaginas()

‘ invertirpaginas Macro

Dim i, paginas As Integer
Dim bmRange As Range

paginas = Selection.Information(wdNumberOfPagesInDocument)

For i = 1 To paginas

Set bmRange = ActiveDocument.Bookmarks(“\Page”).Range

Selection.HomeKey Unit:=wdStory
Selection.PasteAndFormat (wdPasteDefault)
Selection.HomeKey Unit:=wdStory

Next i
End Sub

This entry was posted in Microsoft Office, vba and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s