M
Maxer
Ok I have a bit of an odd problem and to make things worse I've only used VBA
in Access, never word.
I have a massive word document that has several hundred tables.
The tables have (in some cases) nested cells. This happened because the
person making the table would hit ENTER if the text for the cell was too long
so it would create a new line instead of letting it word wrap.
What I would like to do is take out all of those tables, and dump them into
Excel.
However, before I can do that I have to clean up the word document.
The tables are 5 columns. For our purposes let us say they are the following:
FirstName, LastName, Phone, Address, email.
The tables are all organized by zip code, in such a way that instead of
having EVERYONE as one giant excel table. This word document has tables
where each table represents 1 zip code.
So the table's first cell is ZIPCODE 12345
then the column headers, then the data.
So an example:
ZIPCODE 12345
FirstName LastName Phone Address (rest omitted)
FName LName 5555 123Street Apt 2A
Fname2 Lname2 3333 575 Orchard Blvd
Now when I copy it to Excel I would like to have it appear as
12345 FName LName 5555 123Street Apt
2A
12345 Fname2 Lname2 3333 575 Orchard
Blvd
So is there some way I can get it to read the first row, store that, then
when it moves the data to Excel always make the first column of excel ZipCode
that was taken from row 1?
Skip row 2 (as that is the column headings, and I don't need those in Excel)
then start pulling the data on row 3?
Another problem I have is that some of those are nested if the text was too
long.
Take address for example:
ZIPCODE 12345
FirstName LastName Phone Address (rest omitted)
FName LName 5555 123456789 LONG
STREET
NAME
Apt 2A
Fname2 Lname2 3333 575 Orchard Blvd
So now what should have been an entire record on row 3 becomes a partial
record with the rest of the data from column 4 (address) being on rows 4 and
5 and the next record starting on row 6.
This creates a rather painful situation for me as I want the data moved
cleanly into Excel.
I would greatly appreciate any help that can be offered, thank you.
in Access, never word.
I have a massive word document that has several hundred tables.
The tables have (in some cases) nested cells. This happened because the
person making the table would hit ENTER if the text for the cell was too long
so it would create a new line instead of letting it word wrap.
What I would like to do is take out all of those tables, and dump them into
Excel.
However, before I can do that I have to clean up the word document.
The tables are 5 columns. For our purposes let us say they are the following:
FirstName, LastName, Phone, Address, email.
The tables are all organized by zip code, in such a way that instead of
having EVERYONE as one giant excel table. This word document has tables
where each table represents 1 zip code.
So the table's first cell is ZIPCODE 12345
then the column headers, then the data.
So an example:
ZIPCODE 12345
FirstName LastName Phone Address (rest omitted)
FName LName 5555 123Street Apt 2A
Fname2 Lname2 3333 575 Orchard Blvd
Now when I copy it to Excel I would like to have it appear as
12345 FName LName 5555 123Street Apt
2A
12345 Fname2 Lname2 3333 575 Orchard
Blvd
So is there some way I can get it to read the first row, store that, then
when it moves the data to Excel always make the first column of excel ZipCode
that was taken from row 1?
Skip row 2 (as that is the column headings, and I don't need those in Excel)
then start pulling the data on row 3?
Another problem I have is that some of those are nested if the text was too
long.
Take address for example:
ZIPCODE 12345
FirstName LastName Phone Address (rest omitted)
FName LName 5555 123456789 LONG
STREET
NAME
Apt 2A
Fname2 Lname2 3333 575 Orchard Blvd
So now what should have been an entire record on row 3 becomes a partial
record with the rest of the data from column 4 (address) being on rows 4 and
5 and the next record starting on row 6.
This creates a rather painful situation for me as I want the data moved
cleanly into Excel.
I would greatly appreciate any help that can be offered, thank you.