PC Review


Reply
Thread Tools Rate Thread

converting tabular structures in a Word document into an actual tableor reading data from the tabular structures using VBA code

 
 
s
Guest
Posts: n/a
 
      2nd Jun 2010
I have a macro which can read the last cell/column of all tables in a
Word 2003/2007 document and store the data in an MS-Access table. But,
some Word documents have the data in structures like a table format
but are not actually tables. The structure looks like a table, but the
table borders are actually line connectors. These documents were
created by a software(VeryPDF PDF to Word converter) which converted
the PDF documents(the original format these documents were) into Word
documents.

1. Is there a way I can convert/replace the tabular structures with
actual tables in Word so that I can use the macro?

2. Or, is there a way I can read the value of the last column from the
tabular structures using some VBA code?

Any advice would be appreciated.

 
Reply With Quote
 
 
 
 
Jay Freedman
Guest
Posts: n/a
 
      2nd Jun 2010
Select the tabular structure and click Table > Convert > Text to Table (or
in Word 2007, Insert > Table > Convert Text to Table).

Before you can get this to work properly, you may have to do some cleanup to
remove some of the line-drawing characters, especially those that make the
corners and the horizontal lines. Instead of removing the vertical lines
between the columns, use those as the "separator characters" in the
conversion dialog.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

s wrote:
> I have a macro which can read the last cell/column of all tables in a
> Word 2003/2007 document and store the data in an MS-Access table. But,
> some Word documents have the data in structures like a table format
> but are not actually tables. The structure looks like a table, but the
> table borders are actually line connectors. These documents were
> created by a software(VeryPDF PDF to Word converter) which converted
> the PDF documents(the original format these documents were) into Word
> documents.
>
> 1. Is there a way I can convert/replace the tabular structures with
> actual tables in Word so that I can use the macro?
>
> 2. Or, is there a way I can read the value of the last column from the
> tabular structures using some VBA code?
>
> Any advice would be appreciated.



 
Reply With Quote
 
s
Guest
Posts: n/a
 
      2nd Jun 2010
On Jun 2, 4:26*pm, "Jay Freedman" <jay.freed...@verizon.net> wrote:
> Select the tabular structure and click Table > Convert > Text to Table (or
> in Word 2007, Insert > Table > Convert Text to Table).
>
> Before you can get this to work properly, you may have to do some cleanupto
> remove some of the line-drawing characters, especially those that make the
> corners and the horizontal lines. Instead of removing the vertical lines
> between the columns, use those as the "separator characters" in the
> conversion dialog.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP * * * *FAQ:http://word.mvps.org


Thanks for the suggestion.

How do I use the vertical lines between the columns as "separator
characters"? In Word 2007, I choose Insert -> Table -> Convert Text to
Table, in that at Separate Text as option, I can enter some
information for Other, but what do I enter for the vertical lines
which are actually line connectors? Do I enter their ASCII code
value(i don't know how to find their ASCII code value) or something
else?

Can you please clarify?

Thanks
 
Reply With Quote
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      2nd Jun 2010

You could try copying and pasting one of the "line connectors" into the
Other space

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"s" <(E-Mail Removed)> wrote in message
news:95432408-4b9a-4333-908a-(E-Mail Removed)...
> On Jun 2, 4:26 pm, "Jay Freedman" <jay.freed...@verizon.net> wrote:
>> Select the tabular structure and click Table > Convert > Text to Table
>> (or
>> in Word 2007, Insert > Table > Convert Text to Table).
>>
>> Before you can get this to work properly, you may have to do some cleanup
>> to
>> remove some of the line-drawing characters, especially those that make
>> the
>> corners and the horizontal lines. Instead of removing the vertical lines
>> between the columns, use those as the "separator characters" in the
>> conversion dialog.
>>
>> --
>> Regards,
>> Jay Freedman
>> Microsoft Word MVP FAQ:http://word.mvps.org

>
> Thanks for the suggestion.
>
> How do I use the vertical lines between the columns as "separator
> characters"? In Word 2007, I choose Insert -> Table -> Convert Text to
> Table, in that at Separate Text as option, I can enter some
> information for Other, but what do I enter for the vertical lines
> which are actually line connectors? Do I enter their ASCII code
> value(i don't know how to find their ASCII code value) or something
> else?
>
> Can you please clarify?
>
> Thanks


 
Reply With Quote
 
Jay Freedman
Guest
Posts: n/a
 
      3rd Jun 2010
Hint: With the cursor in the Other box, press Ctrl+V to paste the
clipboard content. (Lots of people think they have to use a toolbar
button or a menu entry to paste, and those aren't available in a
dialog. The keyboard shortcut works almost everywhere.)

On Thu, 3 Jun 2010 08:57:47 +1000, "Doug Robbins - Word MVP"
<(E-Mail Removed)> wrote:

>You could try copying and pasting one of the "line connectors" into the
>Other space
>
>--
>Hope this helps.
>
>Please reply to the newsgroup unless you wish to avail yourself of my
>services on a paid consulting basis.
>
>Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
>
>"s" <(E-Mail Removed)> wrote in message
>news:95432408-4b9a-4333-908a-(E-Mail Removed)...
>> On Jun 2, 4:26 pm, "Jay Freedman" <jay.freed...@verizon.net> wrote:
>>> Select the tabular structure and click Table > Convert > Text to Table
>>> (or
>>> in Word 2007, Insert > Table > Convert Text to Table).
>>>
>>> Before you can get this to work properly, you may have to do some cleanup
>>> to
>>> remove some of the line-drawing characters, especially those that make
>>> the
>>> corners and the horizontal lines. Instead of removing the vertical lines
>>> between the columns, use those as the "separator characters" in the
>>> conversion dialog.
>>>
>>> --
>>> Regards,
>>> Jay Freedman
>>> Microsoft Word MVP FAQ:http://word.mvps.org

>>
>> Thanks for the suggestion.
>>
>> How do I use the vertical lines between the columns as "separator
>> characters"? In Word 2007, I choose Insert -> Table -> Convert Text to
>> Table, in that at Separate Text as option, I can enter some
>> information for Other, but what do I enter for the vertical lines
>> which are actually line connectors? Do I enter their ASCII code
>> value(i don't know how to find their ASCII code value) or something
>> else?
>>
>> Can you please clarify?
>>
>> Thanks

 
Reply With Quote
 
s
Guest
Posts: n/a
 
      3rd Jun 2010
On Jun 2, 6:57*pm, "Doug Robbins - Word MVP" <d...@REMOVECAPSmvps.org>
wrote:
> You could try copying and pasting one of the "line connectors" into the
> Other space
>
> --
> Hope this helps.
>


> Doug Robbins - Word MVP, originally posted via msnews.microsoft.com


Tried that, before I posted a response to Jay's message. It did not
work. Do you know how they
are actually represented in MS-Word. For example, I know paragraph
breaks are represented by "^p"

Or, is it possible to use some VBA code to convert the line connectors
into a table or atleast extract data
inside them?

Thanks
>
> "s" <s...@mailinator.com> wrote in message
>
> news:95432408-4b9a-4333-908a-(E-Mail Removed)...
>
> > On Jun 2, 4:26 pm, "Jay Freedman" <jay.freed...@verizon.net> wrote:
> >> Select the tabular structure and click Table > Convert > Text to Table
> >> (or
> >> in Word 2007, Insert > Table > Convert Text to Table).

>
> >> Before you can get this to work properly, you may have to do some cleanup
> >> to
> >> remove some of the line-drawing characters, especially those that make
> >> the
> >> corners and the horizontal lines. Instead of removing the vertical lines
> >> between the columns, use those as the "separator characters" in the
> >> conversion dialog.

>
> >> --
> >> Regards,
> >> Jay Freedman
> >> Microsoft Word MVP * * * *FAQ:http://word.mvps.org

>
> > Thanks for the suggestion.

>
> > How do I use the vertical lines between the columns as "separator
> > characters"? In Word 2007, I choose Insert -> Table -> Convert Text to
> > Table, in that at Separate Text as option, I can enter some
> > information for Other, but what do I enter for the vertical lines
> > which are actually line connectors? Do I enter their ASCII code
> > value(i don't know how to find their ASCII code value) or something
> > else?

>
> > Can you please clarify?

>
> > Thanks


 
Reply With Quote
 
s
Guest
Posts: n/a
 
      3rd Jun 2010
On Jun 2, 9:04*pm, Jay Freedman <jay.freed...@verizon.net> wrote:
> Hint: With the cursor in the Other box, press Ctrl+V to paste the
> clipboard content. (Lots of people think they have to use a toolbar
> button or a menu entry to paste, and those aren't available in a
> dialog. The keyboard shortcut works almost everywhere.)


Did that, did not work. Nothing appeared in the Other box.
I clicked OK, hoping it might work, but it did not.

The Ctl+V shortcut works almost everywhere in Windows, but at the
place where you are pasting, it should be taking that kind of input
which
in this case(the area in the Other box), i guess, is not. Either
that,
or I am doing something wrong.

Did it work for you? I am using Word 2007.

> On Thu, 3 Jun 2010 08:57:47 +1000, "Doug Robbins - Word MVP"
>
> <d...@REMOVECAPSmvps.org> wrote:
> >You could try copying and pasting one of the "line connectors" into the
> >Other space

>
> >--
> >Hope this helps.

>
> >Please reply to the newsgroup unless you wish to avail yourself of my
> >services on a paid consulting basis.

>
> >Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

>
> >"s" <s...@mailinator.com> wrote in message
> >news:95432408-4b9a-4333-908a-(E-Mail Removed)....
> >> On Jun 2, 4:26 pm, "Jay Freedman" <jay.freed...@verizon.net> wrote:
> >>> Select the tabular structure and click Table > Convert > Text to Table
> >>> (or
> >>> in Word 2007, Insert > Table > Convert Text to Table).

>
> >>> Before you can get this to work properly, you may have to do some cleanup
> >>> to
> >>> remove some of the line-drawing characters, especially those that make
> >>> the
> >>> corners and the horizontal lines. Instead of removing the vertical lines
> >>> between the columns, use those as the "separator characters" in the
> >>> conversion dialog.

>
> >>> --
> >>> Regards,
> >>> Jay Freedman
> >>> Microsoft Word MVP * * * *FAQ:http://word.mvps.org

>
> >> Thanks for the suggestion.

>
> >> How do I use the vertical lines between the columns as "separator
> >> characters"? In Word 2007, I choose Insert -> Table -> Convert Text to
> >> Table, in that at Separate Text as option, I can enter some
> >> information for Other, but what do I enter for the vertical lines
> >> which are actually line connectors? Do I enter their ASCII code
> >> value(i don't know how to find their ASCII code value) or something
> >> else?

>
> >> Can you please clarify?

>
> >> Thanks


 
Reply With Quote
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      3rd Jun 2010

Send a copy of the document to dkr[atsymbo]mvps[dot]org and I will take a
look as see exactly what it is and how to handle it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"s" <(E-Mail Removed)> wrote in message
news:b9444a46-0dcf-4c7b-b522-(E-Mail Removed)...
> On Jun 2, 6:57 pm, "Doug Robbins - Word MVP" <d...@REMOVECAPSmvps.org>
> wrote:
>> You could try copying and pasting one of the "line connectors" into the
>> Other space
>>
>> --
>> Hope this helps.
>>

>
>> Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

>
> Tried that, before I posted a response to Jay's message. It did not
> work. Do you know how they
> are actually represented in MS-Word. For example, I know paragraph
> breaks are represented by "^p"
>
> Or, is it possible to use some VBA code to convert the line connectors
> into a table or atleast extract data
> inside them?
>
> Thanks
>>
>> "s" <s...@mailinator.com> wrote in message
>>
>> news:95432408-4b9a-4333-908a-(E-Mail Removed)...
>>
>> > On Jun 2, 4:26 pm, "Jay Freedman" <jay.freed...@verizon.net> wrote:
>> >> Select the tabular structure and click Table > Convert > Text to Table
>> >> (or
>> >> in Word 2007, Insert > Table > Convert Text to Table).

>>
>> >> Before you can get this to work properly, you may have to do some
>> >> cleanup
>> >> to
>> >> remove some of the line-drawing characters, especially those that make
>> >> the
>> >> corners and the horizontal lines. Instead of removing the vertical
>> >> lines
>> >> between the columns, use those as the "separator characters" in the
>> >> conversion dialog.

>>
>> >> --
>> >> Regards,
>> >> Jay Freedman
>> >> Microsoft Word MVP FAQ:http://word.mvps.org

>>
>> > Thanks for the suggestion.

>>
>> > How do I use the vertical lines between the columns as "separator
>> > characters"? In Word 2007, I choose Insert -> Table -> Convert Text to
>> > Table, in that at Separate Text as option, I can enter some
>> > information for Other, but what do I enter for the vertical lines
>> > which are actually line connectors? Do I enter their ASCII code
>> > value(i don't know how to find their ASCII code value) or something
>> > else?

>>
>> > Can you please clarify?

>>
>> > Thanks

>

 
Reply With Quote
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      3rd Jun 2010

Send a copy of your document to dkr[atsymbol]mvps[dot]org and I will take a
look at it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"s" <(E-Mail Removed)> wrote in message
news:c0da9e8c-19cf-4f3d-ae74-(E-Mail Removed)...
> On Jun 2, 9:04 pm, Jay Freedman <jay.freed...@verizon.net> wrote:
>> Hint: With the cursor in the Other box, press Ctrl+V to paste the
>> clipboard content. (Lots of people think they have to use a toolbar
>> button or a menu entry to paste, and those aren't available in a
>> dialog. The keyboard shortcut works almost everywhere.)

>
> Did that, did not work. Nothing appeared in the Other box.
> I clicked OK, hoping it might work, but it did not.
>
> The Ctl+V shortcut works almost everywhere in Windows, but at the
> place where you are pasting, it should be taking that kind of input
> which
> in this case(the area in the Other box), i guess, is not. Either
> that,
> or I am doing something wrong.
>
> Did it work for you? I am using Word 2007.
>
>> On Thu, 3 Jun 2010 08:57:47 +1000, "Doug Robbins - Word MVP"
>>
>> <d...@REMOVECAPSmvps.org> wrote:
>> >You could try copying and pasting one of the "line connectors" into the
>> >Other space

>>
>> >--
>> >Hope this helps.

>>
>> >Please reply to the newsgroup unless you wish to avail yourself of my
>> >services on a paid consulting basis.

>>
>> >Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

>>
>> >"s" <s...@mailinator.com> wrote in message
>> >news:95432408-4b9a-4333-908a-(E-Mail Removed)...
>> >> On Jun 2, 4:26 pm, "Jay Freedman" <jay.freed...@verizon.net> wrote:
>> >>> Select the tabular structure and click Table > Convert > Text to
>> >>> Table
>> >>> (or
>> >>> in Word 2007, Insert > Table > Convert Text to Table).

>>
>> >>> Before you can get this to work properly, you may have to do some
>> >>> cleanup
>> >>> to
>> >>> remove some of the line-drawing characters, especially those that
>> >>> make
>> >>> the
>> >>> corners and the horizontal lines. Instead of removing the vertical
>> >>> lines
>> >>> between the columns, use those as the "separator characters" in the
>> >>> conversion dialog.

>>
>> >>> --
>> >>> Regards,
>> >>> Jay Freedman
>> >>> Microsoft Word MVP FAQ:http://word.mvps.org

>>
>> >> Thanks for the suggestion.

>>
>> >> How do I use the vertical lines between the columns as "separator
>> >> characters"? In Word 2007, I choose Insert -> Table -> Convert Text to
>> >> Table, in that at Separate Text as option, I can enter some
>> >> information for Other, but what do I enter for the vertical lines
>> >> which are actually line connectors? Do I enter their ASCII code
>> >> value(i don't know how to find their ASCII code value) or something
>> >> else?

>>
>> >> Can you please clarify?

>>
>> >> Thanks

>

 
Reply With Quote
 
s
Guest
Posts: n/a
 
      3rd Jun 2010
On Jun 2, 9:25*pm, "Doug Robbins - Word MVP" <d...@REMOVECAPSmvps.org>
wrote:
> Send a copy of your document to dkr[atsymbol]mvps[dot]org and I will takea
> look at it.
>
> --
> Hope this helps.


Sent that document to you.

1. Is there a software which is recommended for converting PDF
documents having tables into a
Word(2003/2007) format which preserves the table format and converts
to actual Word tables instead of tabular structures?

I attempted Very2PDF PDF to Word converter, but that converted the
tables to tabular structures with vertical/horizontal
connectors.

I tried using NitroPDF, but that too did not work. It created the RTF
document, but the tables were laid
out with textboxes or as vertically merged cells .

I used Acrobat 9 Professional, but that also could not convert the
table structure when I exported it
as a Word document. Some part came out as a picture in Word, some came
in tabular structures.

2. Is there a way to read from textboxes/tabular structures with
vertical/horizontal
connectors using VBA or some other method? If so, the files converted
through NitroPDF
would work.

Any suggestions would be appreciated.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net code for advanced data structures GFM GToeroe Microsoft VB .NET 4 14th Jun 2006 10:04 AM
How do I change document structures in Word? =?Utf-8?B?TEo=?= Microsoft Word Document Management 2 11th Jun 2006 03:51 PM
Re: How can I put a Tabular Subform in a Tabular Main form? Rick B Microsoft Access Forms 1 13th Jul 2004 09:39 PM
Need to make a Tabular Subform in a Tabular Main Form.... =?Utf-8?B?TWlrZQ==?= Microsoft Access Forms 1 13th Jul 2004 07:53 PM
Re: Can't get a Tabular Subform to work with a Tabular Main form.... Rick B Microsoft Access Form Coding 0 13th Jul 2004 07:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:42 AM.