Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 17th, 2014, 08:33 AM
Registered User
Join Date: Apr 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert list numbers to static text

I have to create numbered requirement entries throughout a large document. Initially I increment by 10 so later on if I have to add entries to a section, I can make them sequential but not really necessary. There could be 2000-300 numbered entries in the document but when I'm finished, the numbers must stay static, They can not be allowed to change through insertion of new numbers or deletion of existing ones. In a way this is similar to using the copy/drag functionality in excel to create a series of numbers from a formula "= a1+10" and then copying/paste special/values so the results are present and not the formula.
An example is:

VR1 Requirement 1
VR10 Requirement 2
VR20 Requirement 3

Does anyone know if this would be possible in Word 2010, either through existing functionality or through backend VB coding? If so could you point in in the right direction?
Old November 4th, 2014, 01:51 AM
Friend of Wrox
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts

Hi Alison

A small hint through Word VBA

For i = 1 To 100
        Selection.TypeText Text:="VR1 Requirement " & i
    Next i
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
Old November 4th, 2014, 10:40 AM
Authorized User
Join Date: Oct 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts

thanks for the tip. I think that will work.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
loop through static list of values? mister_mister XSLT 6 January 4th, 2008 11:48 AM
Convert Numbers to Words hasankelepir Classic ASP Basics 5 October 1st, 2007 07:15 AM
how to add static text in drop down list vinodonline2000 ASP.NET 2.0 Basics 10 August 16th, 2007 12:39 AM
How can i convert english numbers to arabic number zahidpervaiz Classic ASP Databases 0 December 30th, 2003 06:51 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.