#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Parse

I have a software database program that downloads to an
Excel file. As it overwrites the file everytime that it
downloads I have to create another file to hold a report
that I have that uses the data. One column for the data
entered contains the address. Unfortunately, the address
comes across with the street address and the city and
state in one cell. The street address and the city and
state location are separated with what I believe to be an
end of line character. (2 squares) I am trying to parse
this so that the street address is in one cell and the
city and state are in another cell. I am trying to
automate this report so that it can be updated once a
week. This means that I am using VB code in Excel. Also,
I am transfering this to more than one sheet in the
workbook and transfering data into anywhere from 2 to 100
rows. I will need to use a loop and an index variable for
the row and the sheet. I would like to know the code to
use. I have tried .parse and .TextToColumn but I am not
having very good luck. Perhaps one of these does work but
I do not have the correct syntax.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Parse

Never mind I figured it out.


-----Original Message-----
I have a software database program that downloads to an
Excel file. As it overwrites the file everytime that it
downloads I have to create another file to hold a report
that I have that uses the data. One column for the data
entered contains the address. Unfortunately, the address
comes across with the street address and the city and
state in one cell. The street address and the city and
state location are separated with what I believe to be an
end of line character. (2 squares) I am trying to parse
this so that the street address is in one cell and the
city and state are in another cell. I am trying to
automate this report so that it can be updated once a
week. This means that I am using VB code in Excel.

Also,
I am transfering this to more than one sheet in the
workbook and transfering data into anywhere from 2 to 100
rows. I will need to use a loop and an index variable

for
the row and the sheet. I would like to know the code to
use. I have tried .parse and .TextToColumn but I am not
having very good luck. Perhaps one of these does work

but
I do not have the correct syntax.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Parse

Sarah.

Why don't you get the information directly into Excel from the database ?
What database are you using ?

The 2 squares you talk about are quite possibly char10 and char13 (CR/LF).

Chris

"Sarah" wrote in message
...
I have a software database program that downloads to an
Excel file. As it overwrites the file everytime that it
downloads I have to create another file to hold a report
that I have that uses the data. One column for the data
entered contains the address. Unfortunately, the address
comes across with the street address and the city and
state in one cell. The street address and the city and
state location are separated with what I believe to be an
end of line character. (2 squares) I am trying to parse
this so that the street address is in one cell and the
city and state are in another cell. I am trying to
automate this report so that it can be updated once a
week. This means that I am using VB code in Excel. Also,
I am transfering this to more than one sheet in the
workbook and transfering data into anywhere from 2 to 100
rows. I will need to use a loop and an index variable for
the row and the sheet. I would like to know the code to
use. I have tried .parse and .TextToColumn but I am not
having very good luck. Perhaps one of these does work but
I do not have the correct syntax.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse text Max Excel Discussion (Misc queries) 5 April 3rd 09 04:51 PM
How to parse data bdwood Excel Discussion (Misc queries) 1 August 17th 06 08:36 PM
How to parse data Dave F Excel Discussion (Misc queries) 0 August 17th 06 07:32 PM
Parse from the Right PA Excel Worksheet Functions 6 June 11th 06 06:05 PM
How do I parse columns? ChuckNC Excel Worksheet Functions 4 May 25th 06 03:30 PM


All times are GMT +1. The time now is 03:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"