Question

  Asked: Apr 2 2008   3:14 PM GMT
  Asked by: SHAPOW


CSV data into Excel 2007


Excel 2007, Access 2007, CSV

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!

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0



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
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Microsoft Windows and Database.

Looking for relevant Microsoft Windows Whitepapers? Visit the SearchWinIT.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

SHAPOW  |   Apr 3 2008  1:42PM GMT

Thanks, I’ll give it a try. I’m open to anything else. This is a project so learning experience is a plus.