steve tatum
New Member
Hello all, I am trying to write some VBA code in Excel that will strip out leading zeros from a number that is in a group of cells. The cells contain various numbers of varying lengths. The number may or may not contain zeros that are not leading. Leading zeros are all I want to delete. There may be 1 to 4 leading zeros. For example, if the data is C1=00037103, C2=194709, C3=023113, C4=0010110456, C5=00798650. I would like for the code to produce D1=37103, D2=194709, D3=23113, D4=10110456, D5=798650.
Last edited: