Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop through alphabet 3

Status
Not open for further replies.

UnsolvedCoding

Technical User
Jul 20, 2011
424
US
I am supposed to be making a way to go into workbooks on a drive that all end in a letter of the alphabet.

What would be nice is if there is a way to increase the letter of the alphabet for each loop. Making a number increase by one is easy, but nothing found indicates how to increase the alphabet by one.

Ideas?
 



Hi,

Check out the ASCII character values and the Chr() function.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Code:
Dim iChar as Integer
For iChar = 65 To 90
    Debug.Print Chr(iChar)
Next iChar

ASCII and you shall recieve. (Fnah fnah)
 


THREE replys in the space of TWO minutes, lead by mintjulep, was certainly NOT an ascot.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top