Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default i need help in microsoft excel

i need to find out how to make a repeating pattern with letters like
this

Aaaaaaaa
Aaaaaaab
Aaaaaaac
Aaaaaaad
Aaaaaaae


and then later it gets to

Aaaaaaba
Aaaaaabb
Aaaaaabc
Aaaaaabd
Aaaaaabe

and so on. how do i do this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default i need help in microsoft excel

this code will do what you want. Base is 5 because you are count 5 letters a
- e. Places is 8 because you have 8 charracter per string.


Sub BaseCount()

Base = 5
Places = 8
AsciiA = Asc("a")

endNumber = (Base ^ Places) - 1

RowCount = 1
For Count = 0 To endNumber

Number = Count
NumberString = ""
For i = (Places - 1) To 0 Step -1

quotent = Int(Number / (Base ^ i))
NumberString = NumberString + Chr(AsciiA + quotent)
Number = Number - (quotent * (Base ^ i))

Next i
Cells(RowCount, 1) = NumberString
RowCount = RowCount + 1

Next Count

End Sub


" wrote:

i need to find out how to make a repeating pattern with letters like
this

Aaaaaaaa
Aaaaaaab
Aaaaaaac
Aaaaaaad
Aaaaaaae


and then later it gets to

Aaaaaaba
Aaaaaabb
Aaaaaabc
Aaaaaabd
Aaaaaabe

and so on. how do i do this?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I covert Microsoft Word file into Microsoft Excel one? KatK Excel Discussion (Misc queries) 1 April 3rd 08 04:57 PM
Microsoft Visual Basic errors displaid when opening Microsoft Word 97 & Excel (7 JJ mac Setting up and Configuration of Excel 7 June 14th 07 06:54 PM
Relation Microsoft Access avec Microsoft Excel Mounir Excel Discussion (Misc queries) 2 August 23rd 06 10:43 AM
Change individual cell heights/widths in Microsoft Excel 2000 like Microsoft Word urbanplanner Excel Discussion (Misc queries) 3 December 7th 05 03:57 PM
Microsoft Excel Viewer 2003 won't open Microsoft Excel Worksheet Graham Jones Excel Discussion (Misc queries) 1 May 13th 05 12:58 AM


All times are GMT +1. The time now is 12:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"