attached is a sample of the blank pages that I wish to write to (various sizes and orientation). I need a quick way to do this, as in practice I will have hundreds of blank pages that need to have the numbering applied, and the order,orientation, size of these blank pages must be preserved.
Macro I am using:
Code: Select all
Sub Main
Dim i As long
Do
i = inputbox("How many lines you require?","Line Count")
loop While not isNumeric(i)
Dim oText
oText = ThisComponent.Text
Dim n
For n = 50 To i
oText.insertString(oText.getEnd(), CHR$(13) & n & CHR$(9) , false)
Next n
Print "Done!"
End Sub