Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-14-2011, 03:02 PM
jdwoods jdwoods is offline Sequential  Numbering Windows XP Sequential  Numbering Office 2003
Novice
Sequential  Numbering
 
Join Date: Dec 2011
Posts: 4
jdwoods is on a distinguished road
Default

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
This is the code that I am using.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sequential  Numbering Sequential numbering across multiple docs mslearner Word 18 06-12-2019 04:00 AM
Sequential  Numbering How do I do a Sequential Numbering? gburya Word VBA 26 07-04-2017 03:29 PM
Sequential  Numbering 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
Sequential  Numbering Subtotaling Sequential 0's ktpalmer Excel 2 06-23-2010 06:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft