replace variables (auto-numbered paragraph numbers) with constants
by emFwc3Bhbg » Tue, 04 Mar 2008 15:14:00 GMT
I often write a particular type of technical document in which each paragraph
is numbered (using auto-numbering, so that I can insert new paragraphs and
not have to re-number the whole document). Is there a way, when I'm sure
that I won't need to make any changes, that I can have the variable paragraph
numbers repalced with their current value? I am asking because someone else
wants to be able to copy some of my paragraphs into a new Word document
without losing the paragraph number.
Thanks,
Mike
Re: replace variables (auto-numbered paragraph numbers) with constants
by Graham Mayor » Tue, 04 Mar 2008 15:26:07 GMT
The following macro should do the trick
Sub NumbersAutoToText()
ActiveDocument.ConvertNumbersToText
End Sub
http://www.**--****.com/
Test it on a *copy* of the document.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://www.**--****.com/
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Similar Threads:
1.replace variables (auto-numbered paragraph numbers) with const
2.How to retrieve the paragraph number of an auto-numbered paragraph
Hi Robot,
as this is the beginners group,
without discussing all details,
in principle like that:
With Selection.Range.ListParagraphs(1)
MsgBox .Range.ListFormat.ListString
End With
assuming, that there is a listparagraph...
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Word 2002, Windows XP (german versions)
3.convert auto numbered paragraph numbers to text
Now that I have finished a document that others will edit and who do NOT LIKE
auto numbering, how do I convert the auto-numbers to text? That is,
auto-number 7 to just plan 7 text in word 2007?
Thank you
4.Replace a constant with an incrementing number
Is there a way in Word to replace a constant with a self incrementing number?
For example, I have a 500+ page Word document, it has a fixed phrase XYZ
repeated many, many times in the document. I need to replace XYZ with a self
incrementing number where I can specify what the starting number would be;
first occurance of XYZ becomes 101000, second occurance of XYZ becomes 101001
etc.
Can I use 'Find and Replace' for what I need to do? Or do I have to get
into Macros?
5.Auto paragraph number - then remove auto
I like to use auto paragraph number,which is really outlinning. Someone I send documents to cannot or will not use it and has asked me not to use it. However, not using it is a pain
How can I use the auto paragraph number function and then when I am through, remove the auto paragraph but leave the paragraph numbers in the document as if they were hard coded
Thanks
6. Find/Replace Constant Strings in Word Document With Variable Data With VBA
7. custom numbering - constant digits number
8. Reading Auto-Numbered Word Paragraph Styles in VB