I believe you have this horse backwards. Excel will format cells differently in a single column EVEN IF YOU FORMAT THE COLUMN AS TEXT. Access reads the formatted value of the cell when it is displayed. If I use a 13 character numeric number, the National Stock Number, which should be treated as text and format it as text using the Excel formatting menus it will still display in scientific notation. I import hundreds of these files each month and am continually struggling with Excel. There is a discussion of this issue on the Microsoft Office Knowledgebase (
and it provides a VBA based solution to force Excel to format in a certain fashion. I have created a number of formatting macros in Excel based on this general tip that work most of the time. Try entering a text value like 12/1 and it will always change it to a date.
Public Sub Format_Text()
Dim xCell As Variant
Dim strTemp As String
Dim intPos As Integer
On Error GoTo HandleErr
For Each xCell In Selection
If Left$(xCell.Value, 1) <> "'" Then
If IsDate(xCell.Value) And HasTwoSlashes(xCell.Value) Then
intPos = InStr(1, CStr(xCell.Value), "/"

If intPos > 0 Then
strTemp = "'" & Left$(xCell.Value, intPos - 1) & "/"
strTemp = strTemp & Mid$(xCell.Value, intPos + 1, InStr(intPos + 1, xCell.Value, "/"

- intPos - 1)
xCell.Value = strTemp
End If
Else
xCell.Value = "'" & Trim(xCell.Value)
'Debug.Print xCell.Value
End If
End If
DoEvents
Next xCell
Exit_Proc:
Exit Sub
End Sub
-------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------