Just posting a quick problem I have. It shouldn't be too hard but I'm under the weather and can't work how to tackle it right now.
Say you have a string which is a reference number. It has alphabetical characters at the front of the string and numerals for the rest. e.g. "XYZ42567" I need a function that I can pass this string to and it will generate the next string. so from the example, the function would return "XYZ42568".
Also we can't guess what the letters are for, so if the input argument is "XYZ999" then an input box should be shown to the user that the function can't predict the next code so it will need it manually entered this time.
To make it easier, I currently only need it for strings that are in the format of letters followed by numerals.
(But ideally the function should accept a complete mix of numerals & letters. The function only increments the last block of numerals from the right).
Bookmarks