Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Numbering / October 2005

Tip: Looking for answers? Try searching our database.

How to change alpha numbering? - X, Y, Z, A1, B1, C1....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 07 Oct 2005 20:16 GMT
I have someone that is looking to do alpha auto numbering, but rather than
go A, B, C...X, Y, Z, AA, BB, CC - wants it to go A, B, C...X, Y, Z, A1, B1,
C1...  I found what I thought was a close option, but it didn't work (for
doing AA, AB, AC, etc).  Is there a way to do this?

Thanks in advance,

Mike
Doug Robbins - 07 Oct 2005 22:54 GMT
If you select the range of paragraphs to which you want to apply the
numbering and then run a macro containing the following code, it will number
them in that fashion:

Dim i As Long
For i = 1 To Selection.Paragraphs.Count
   If i < 27 Then
       Selection.Paragraphs(i).Range.InsertBefore Chr(64 + i) & vbTab
   ElseIf i Mod 26 = 0 Then
       Selection.Paragraphs(i).Range.InsertBefore "Z" & Int(i / 26) - 1 &
vbTab
   Else
       Selection.Paragraphs(i).Range.InsertBefore Chr((i Mod 26) + 64) &
Int(i / 26) & vbTab
   End If
Next i

Signature

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

>I have someone that is looking to do alpha auto numbering, but rather than
>go A, B, C...X, Y, Z, AA, BB, CC - wants it to go A, B, C...X, Y, Z, A1,
[quoted text clipped - 4 lines]
>
> Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.