Alphabet loop

Everton

Registered User.
Local time
Today, 16:17
Joined
Aug 10, 2000
Messages
34
Hello,

I'd like to create a loop that will step through the letters of the alphabet, or part of it, in sequence. My first thought was to create a 1-D array called alpabet containing the letters then use:

For Each letter In alphabet
.....
Next

I'm just wondering if anyone has thoughts on any better ways to do this.

Cheers,
Paul.
 
Dim i As Integer
For i = 1 To 26
Debug.Print Chr$(i + 64)
Next i

HTH,

Ken Grubb
Burlington, NC, USA
 
Thanks, I think that is certainly a more elegant way.

Paul.
 

Users who are viewing this thread

Back
Top Bottom