Re: Reverse order numbered list
- From: "Doug Robbins - Word MVP" <dkr@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 12 Feb 2006 11:45:50 +0100
The following is a far superior macro (than my 1999 effort) to
apply/re-apply reverse sequential numbering to a range of paragraphs:
Dim i As Long, Numrange As Range
Set Numrange = Selection.Range
With Numrange
For i = 1 To .Paragraphs.Count
If IsNumeric(.Paragraphs(i).Range.Characters(1)) Then
With .Paragraphs(i).Range
While IsNumeric(.Characters(1))
.Characters(1).Delete
Wend
.Characters(1).Delete
End With
End If
.Paragraphs(i).Range.InsertBefore .Paragraphs.Count - i + 1 & vbTab
Next i
End With
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
"Greg Maxey" <gmaxey@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%23LMoen5LGHA.2580@xxxxxxxxxxxxxxxxxxxxxxx
Here is hoping that anyone that reads my posts will excuse my terrible
spelling. By "small" I meant of course "smart."
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
Greg Maxey wrote:
Suzanne,
I am aware of that link, and didn't recommend it as the user seemed to
already have a list that he needed to number in reverse. So select
it and run the macro. Cindy's method is good, yet sort of
impractical. I mean your have to know the high number in advance,
set up the fields and then type the sequence.
Consider:
one
two
three
four
five
six
seven
eight
nine
ten
It is much easier to select that then run my proposed macro than it
is to set up the field codes, save then (I guess as AutoTex) and then
type the list (would you agree?)
The challenge (and I can't figure it out) is to create such a
sequence as my method and Cindy's does quite well and then delete one
of the sequence members and the list update accordingly. I mean
consider the following (in no particular order):
10. Rolling Stones
9. Little Feat
8. Crosby, Stills, Nash and Young
7. The Doors
6. U2
5. Johnny Cash
4 Jewel
3. Brotha Iz
2. Alice Cooper
1. Johnny Love Jazz
Lets delete one of the members (say number 5). Wouldn't it be nice
if the result would be:
9. Rolling Stones
8. Little Feat
7. Crosby, Stills, Nash and Young
6. The Doors
5. U2
4 Jewel
3. Brotha Iz
2. Alice Cooper
1. Johnny Love Jazz
I have been cracking my small skull trying to achieve the desired
result described above. Hoping a small guy or gal will provide.
Suzanne S. Barnhill wrote:
See http://homepage.swissonline.ch/cindymeister/NbrFAQ.htm#RevNbr for
a method that doesn't require VBA.
"Captain Frog" <fayero@xxxxxxxxxxx> wrote in message
news:e35UeC4LGHA.532@xxxxxxxxxxxxxxxxxxxxxxx
Hi All,
Is there a simple method to display a numbered list in reverse
order? Like Dave Letterman's Top 10 List: 10, 9, 8... Any help is
gratefully appreciated.
Regards,
Robert
.
- References:
- Reverse order numbered list
- From: Captain Frog
- Re: Reverse order numbered list
- From: Suzanne S. Barnhill
- Re: Reverse order numbered list
- From: Greg Maxey
- Re: Reverse order numbered list
- From: Greg Maxey
- Reverse order numbered list
- Prev by Date: Re: Get numbering text when several ListNum on same line
- Next by Date: Re: Get numbering text when several ListNum on same line
- Previous by thread: Re: Reverse order numbered list
- Next by thread: Re: Reverse order numbered list
- Index(es):
Relevant Pages
|
Loading