Increment a Text String (from ABY to ABZ to AZA etc.)
Version Compatibility: Visual Basic 6, Visual Basic 5
|If you pass in||The function will return|
In other words, it will work just as you would expect it to for a numeric argument, incrementing the last position if possible or resetting it to A and incrementing the one to its left. The suggested function is case-insensitive; it will preserve the case used in the original string.
Text1.text = IncrementTextString(Text1.text)
Instructions: Copy the declarations and code below and paste directly into your VB project.