CSV data into Excel 2007

45 pts.
Tags:
CSV
Excel 2007
Microsoft Access 2007
Here's the issue. I have a .csv file that I want to import into Excel. This .csv came originally from Access. It has things like access database color values in it. I want to be able to do the following: 1. Change each "chr" value into it represented ascii equivalent. Example: chr(58) is a ":". There has to be some way to automate this process via macro or otherwise. 2. Change each cell/row/column that has the access color value into its corresponding color. Example: Color value "13619151" changes the cell to the corresponding access color. Is there anyway that excel can see this particular translation? So far I haven't been able to find a program that can do this for me, nor could I get any tips as to automate the process via Macro or whatever. Any suggestions? Thanks!

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yes there is a way withing excel itself, if your up on your visual basic code you can enter the editor via the menu or i believe its F11 from here you can take the contents of a cell, break it up and change values in to the chr value.

One easy way is to record a short macro, do a few operations i.e move the selected cell a few times. stop the macro and enter the vb editor mode. even if your not up on vb you should be able to see the code for moving the selected cell.

As its all vb to get the value of the selectedcell you would use the .text so it would look something like mytextvariable = selectedcell.text
From there you could pick at 1 character at a time or whatever you like

Hope this helps you, although without knowledge of vb you might find it a little tough but a great learning experience

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • SHAPOW
    Thanks, I'll give it a try. I'm open to anything else. This is a project so learning experience is a plus.
    45 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following