J
Jose Manuel
Hi!
I'm trying to repete this instruction in all pages:
Dim paginas As String
paginas = 1
Do
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.InsertBreak Type:=wdPageBreak
paginas = paginas + 1
Loop Until paginas = PAGE_TOTAL!!
End Sub
My doubt is how to define the PAGE_TOTAL. In the documents I work with, the
number of pages is not fixed, so it's tired to change the total each time I
use the macro.
Is there another way to do this simpler? Is there a function to get the
total of pages?
Thanks a lot!
I'm trying to repete this instruction in all pages:
Dim paginas As String
paginas = 1
Do
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.InsertBreak Type:=wdPageBreak
paginas = paginas + 1
Loop Until paginas = PAGE_TOTAL!!
End Sub
My doubt is how to define the PAGE_TOTAL. In the documents I work with, the
number of pages is not fixed, so it's tired to change the total each time I
use the macro.
Is there another way to do this simpler? Is there a function to get the
total of pages?
Thanks a lot!