Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DoCmd.TransferSpreadsheet

0 views
Skip to first unread message

Judson Person

unread,
Sep 24, 2003, 9:30:19 PM9/24/03
to
I am exporting a table to MS Excel. I am using office
2002.

When I export a table into Excel in each text export, the
first character is a '. I do not understand how this
character gets into the cells. Is there some condition
that must be set in the instruction?

Mail response to
jpe...@cpinternet.com

Thanks

John Nurick

unread,
Sep 25, 2003, 1:58:46 AM9/25/03
to
Hi Judson,

This is normal, and necessary in order to force Excel to treat values as
text even if they can be interpreted as numbers.

Normally the apopostrophe isn't a problem, because Excel doesn't display
it in the worksheet, omits it from the Value and Formula properties of
the cell, and omits it from any reference to the contents of the cell.

If you do need to be rid of it, use code like this:

Public Sub DeApostrophise()
Dim C as Excel.Range
For Each C in Selection.Cells
C.Formula = C.Formula
Next
End Sub

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.

0 new messages