473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

TransferSpreadsheet Macro Problem

I have three of these that run off queries. They work for the most
part except that on every cell, it inserts an apostrophe ( ' ) before
all text. I can't seem to figure out why. The transfer type is
"Export" and the spreadsheet type is "Microsoft Excel 8-10." I am
using Access/Excel 2003. Any suggestions?

Jan 1 '07 #1
1 1836

<nj*********@gmail.comwrote in message
news:11*********************@k21g2000cwa.googlegro ups.com...
>I have three of these that run off queries. They work for the most
part except that on every cell, it inserts an apostrophe ( ' ) before
all text. I can't seem to figure out why. The transfer type is
"Export" and the spreadsheet type is "Microsoft Excel 8-10." I am
using Access/Excel 2003. Any suggestions?
I do not know where your data originates but It is pretty common for server
level data to arrive in a spreadsheet with what I call quoted numerics as
in '2345634 .

When that is the case access 2003 will show a colored triangle in
the cell. If you then highlight an area of those values you will see
a diamond shaped object with a "!" in it. If you click on that it will
offer to convert the cell's content to numbers.

If that is your situation, you can either fix them interatively
as noted above or programatically set a range to
include all the cells so affected and then simply execute a command
of "xlsheet.Range.Value = xlsheet.Range.value" and all quoted numerals
are converted to numbers.

They will then right align and behave in equations as numbers
because they now are numbers.

Good Luck

Kevin C
Jan 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: O'Donnell Tribunal | last post by:
Hello Everybody, I am using the TransferSpreadsheet method to import spreadsheets for processing. say my code looks like this: DoCmd.TransferSpreadsheet acImport, 0, _ "tbltempImport1", ""...
0
by: Mick Hardy | last post by:
Hi, Has anyone seen this weird behaviour or have any suggestions or can anyone reproduce it? The history: I converted a large third party DB from 97 to XP and it uses the...
3
by: user_5701 | last post by:
Hello, I'm getting an error with a Docmd.Transferspreadsheet line of code: DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel2000, "tblTest", pathAndFilename, True The above line...
0
by: Giganews | last post by:
I have a TransferSpreadsheet process in my Access 97 database that sends data out to an Excel spreadsheet formatted with a Times New Roman 10 point font, centered text, etc... This always works...
13
by: aleksandra_83 | last post by:
Hello, I have searched all over google groups and internet, but I have not found a solution to this problem that has worked. The solutions I found helped me single out the line that is causing...
0
by: 675i76 | last post by:
We've been using a macro to import Excel spreadsheets into an access 2002 database. After 5 months of this we found an error on a report. It turns out that access is ignoring the last row and last...
0
by: Accessed | last post by:
The TransferSpreadsheet from Access 2000 sends data to an EXCEL spreadsheet ok, but all text data ends up with a ' (single character quote) in front of the data. (This is an old throwback to Lotus...
2
by: rlntemp-gng | last post by:
re:Access 2003 TransferSpreadsheet has worked in my app for weeks now. Now, the day I was to put in production (today) it crashes the app, and users are livid...but not more than me...
3
by: RZ15 | last post by:
Hi, I'm going to be giving many people an access database file with a switchboard with quite a few essential queries (query-by-form) so that they can pull data whenever they want. I have a button...
5
by: D.Stone | last post by:
I'm getting a problem with importing an Excel spreadsheet into a table in a SQL Server 2000 back-end. I'm doing this in VBA in an onClick event proc in an Access 2003 project. The target table's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.