![]() |
|
|
|
#1
|
|||
|
|||
|
Code:
Option Explicit
Sub ElevatorInventoryControlTicket()
Dim iStart As Integer, iEnd As Integer, i As Integer
On Error GoTo ErrHandler
With ActiveDocument.Shapes(1).TextFrame.TextRange.Fields(1)
iStart = CInt(InputBox("What is the first certificate to print?", "Print Certificates From", Split(Split(.Code.Text, "")(0), "=")(1)))
iEnd = CInt(InputBox("What is the last Certificate to print?", "Print Certificates To", iStart))
If iStart = 0 Or iStart > iEnd Then Exit Sub
For i = iStart To iEnd
.Code.Text = "=" & i & " \#0"
.Update
ActiveDocument.PrintOut
Next
End With
ErrHandler:
End Sub
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Sequential numbering across multiple docs
|
mslearner | Word | 18 | 06-12-2019 04:00 AM |
How do I do a Sequential Numbering?
|
gburya | Word VBA | 26 | 07-04-2017 03:29 PM |
Sequential Page Numbering of Multiple Word Docs
|
bobmard | Word | 8 | 08-24-2011 08:51 AM |
| Sequential Presentations | GSmoot | PowerPoint | 0 | 07-12-2011 11:20 AM |
Subtotaling Sequential 0's
|
ktpalmer | Excel | 2 | 06-23-2010 06:54 AM |