Looping Text

B

Bob Myles

How can you return the next letter in a sequence

Ie

txt = a+
would equal b, then c then d etc..
 
G

Greg Wilson

Assuming the current letter is derived from the active
cell:

Sub NextLetter()
Dim txt As String
txt = ActiveCell.Text
txt = Chr(Asc(txt) + 1)
MsgBox txt
End Sub

Regards,
Greg
 
Top