Registration Valid? Check Formatted
SBS9101J #VALUE! #VALUE! #VALUE!
This spreadsheet contains Microsoft Visual Basic code to calculate and validate the cshould be compatible with all versions of Microsoft Excel from 1997 to 2007. The "Test" worksheet is a simple test example. Type a Registration in cell A2. The "Vashow the calculated chect character. The Formatted value shows the Registration yo The Visual Basic Module contains the following routines:
Public Function SGPCheckCharacter(ByVal varRegistration As Variant) As S
' Calculate the check character for a Singapore vehicle registration.e.g. SGPCheckCharacter("SFP1001") = "K"
Public Function ValidateSGPRegistration(ByVal varRegistration As Variant)
' Validate a Singapore registratione.g. ValidateSGPRegistration("SFP1001K") = TRUE, ValidateSGPRegistration("SFP100
Public Function NormalizeSGPRegistration(ByVal varRegistration As Varian
' Convert a Singapore registration number to a standard form: AAAnnnnB with' leading zeroes on the numeric part and leading spaces on the alphabetic part.e.g. NormalizeSGPRegistration("FP1S") = " FP0001S" This program is free software: you can redistribute it and/or modify it under the terSoftware Foundation, either version 3 of the License, or (at your option) any later ve This program is distributed in the hope that it will be useful, but WITHOUT ANY WARFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License on sheetGNU General Public License along with this program. If not, see <http://www.gnu.orgIan Fuller (ifuller at yahoo dot com)
Add a Comment