I am accessing data from a different worksheet via VLOOKUP.
The data is brought over in the "General" format.
I must convert the data to the "Number" format for a set of calculations.
However, any method I have tried thus far drops any trailing zeroes.
I CANNOT force any arbitrary number of characters following the decimal point (0.00, 1.00000, etc.).
Following conversion, I must be able to present the data EXACTLY as the user entered it for quality control purposes.
For example, if a user entered a value as 17.6590000, that is what I MUST present.
The data is brought over in the "General" format.
I must convert the data to the "Number" format for a set of calculations.
However, any method I have tried thus far drops any trailing zeroes.
I CANNOT force any arbitrary number of characters following the decimal point (0.00, 1.00000, etc.).
Following conversion, I must be able to present the data EXACTLY as the user entered it for quality control purposes.
For example, if a user entered a value as 17.6590000, that is what I MUST present.
Code:
'VLOOKUP in cell C3.
Range("C3").Formula = "=IF(VLOOKUP(RC[-2],'Filtered Data'!C[37]:C[61],25,FALSE)="""","""",VLOOKUP(RC[-2],'Filtered Data'!C[37]:C[61],25,FALSE))"
'CONDITIONAL AutoFill.
If Last_Row_ColA > 3 Then
Range("C3").AutoFill Destination:=Range("C3:C" & Last_Row_ColA)
End If
'Remove all formulas from current worksheet.
Range("A3:ZZ" & Last_Row_ColA).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'The method below is UNSUCCESSFUL - basically using "Text to Columns."
'Select the RANGE.
'Range("C3:C" & Last_Row_ColA).Select
Selection.TextToColumns Destination:=Range("K3"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
':=Array(1, 1), TrailingMinusNumbers:=True
'The method below is also UNSUCCESSFUL - basically using a generic "self" value.
'Range("C3:C" & Last_Row_ColA).Select
'With Selection
'.Value = .Value
'End With