Google Answers Logo
View Question
 
Q: VISUAL BASIC CSV EXPORT TO EXCEL ( Answered,   0 Comments )
Question  
Subject: VISUAL BASIC CSV EXPORT TO EXCEL
Category: Computers > Programming
Asked by: allyuk1880-ga
List Price: $2.00
Posted: 11 Aug 2006 06:04 PDT
Expires: 10 Sep 2006 06:04 PDT
Question ID: 754987
I HAVE A VB APPLICATION THAT CREATES AN IMPORT CSV FILE FOR OUR
ACCOUNTS SOFTWARE - THIS INCUDES A BRANCH CODE FOR EXAMPLE "0609" -
WHEN OPENED IN EXCEL IT CONVERTS THIS TO "609" DROPPING THE LEADING
ZERO - HOW CAN I FORCE EXCEL TO USE THIS AS TEXT FROM THE VB EXPORT TO
CSV - I HAVE ALREADY TRIED PUTTING QUOTES ROUND IT BUT SAME OCCURS
Answer  
Subject: Re: VISUAL BASIC CSV EXPORT TO EXCEL
Answered By: elmarto-ga on 11 Aug 2006 06:31 PDT
 
Hello!
In order for Excel to interpret the 0609 (or any other number, of
course) as text, you have to add an apostrophe at the beginning, as
in:

'0609

You should have your application append the apostrophe before any
number that is supposed to be used as text.

You can find more information at this link:
Convert Excel Data Types
http://www.digdb.com/excel_add_ins/convert_data_type_text_general/


Google search terms
excel force text number
://www.google.com.ar/search?hl=es&q=excel+force+text+number&meta=


I hope this helps!
Best regards,
elmarto
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy