Dim myArray() As Variant Dim NumText As String Dim DecPos As Integer Dim i as long i = 0 ReDim myArray(Selection.Count) For Each cel In Selection myArray(i) = cel.Value i = i + 1 Next For i = LBound(myArray) To UBound(myArray) NumText = myArray(i) DecPos = InStr(1, NumText, ".") If DecPos > 0 Then If InStr(1, (Right(NumText, Len(NumText) - DecPos)), ".") > 0 Then NumText = Replace(NumText, ".", "", Start:=DecPos + 1) End If End If
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE