PC Review


Reply
Thread Tools Rate Thread

auto-extract fields from word - auto-paste into excel at next row

 
 
=?Utf-8?B?c3dvb29w?=
Guest
Posts: n/a
 
      24th Feb 2006
Word document has info like name: ______ , phone number _______, company
_______ etc. (it isn't a phonebook, just has similar fields).

I want users (employees) to enter the information in word, and then have
word send out the info they type in to excel, and save as a database type
worksheet.

So for the example above, when users click save after typing in the info,
the info they type in goes to a certain excel file (not a new one) and puts
the info in the next available row. Column 1 would be Name, Column 2 would
be phone number etc...

I essentially want the users to use only word, but still maintain a database
for data input.

I thnk MS access can do this type of thing, but I'm sure word/excel can too.

Final example to get my point accross.

In Word:

Input 1: Larry
Input 2: 123-456-7890
Input 3: California

Users enter inputs, then hit save. Upon save (in the background), an excel
file is updated (at the next availabe row) with :

Column 1, row x = Larry
Column 2, row x = 123-456-7890
Column 3, row x = California

The next time that same word document is opened and different info is
inputted, excel should add a row 'y', with the new info.

FYI: The word document is a professional page with professional looking
formating (this is our problem with access).

Any help would be appreciated!

Thanks!
 
Reply With Quote
 
 
 
 
Cindy M -WordMVP-
Guest
Posts: n/a
 
      25th Feb 2006
Hi =?Utf-8?B?c3dvb29w?=,

Best would be to use Form Fields for the input and protect the document (or
this section of it) as a form. You can be sure, that way, of not losing the
"target areas", as could happen with bookmarks. The basic code to extract the
content of a form field:
sStringVar = ActiveDocument.FormFields("Name").Result

There are articles on the word.mvps.org site on automating Excel for data
exchange. Another alternate approach would be to use ADO. Personally, I'd
prefer to do this with Access rather than Excel. ADO can be a bit "touchy" when
used with Excel to update an existing table.

> Word document has info like name: ______ , phone number _______, company
> _______ etc. (it isn't a phonebook, just has similar fields).
>
> I want users (employees) to enter the information in word, and then have
> word send out the info they type in to excel, and save as a database type
> worksheet.
>
> So for the example above, when users click save after typing in the info,
> the info they type in goes to a certain excel file (not a new one) and puts
> the info in the next available row. Column 1 would be Name, Column 2 would
> be phone number etc...
>
> I essentially want the users to use only word, but still maintain a database
> for data input.
>
> I thnk MS access can do this type of thing, but I'm sure word/excel can too.
>
> Final example to get my point accross.
>
> In Word:
>
> Input 1: Larry
> Input 2: 123-456-7890
> Input 3: California
>
> Users enter inputs, then hit save. Upon save (in the background), an excel
> file is updated (at the next availabe row) with :
>
> Column 1, row x = Larry
> Column 2, row x = 123-456-7890
> Column 3, row x = California
>
> The next time that same word document is opened and different info is
> inputted, excel should add a row 'y', with the new info.
>
> FYI: The word document is a professional page with professional looking
> formating (this is our problem with access).
>


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

 
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
Auto Complete (auto fill) in Lookup Fields lucindaaps Microsoft Access 0 13th Jan 2010 09:56 PM
Excel-Auto Sort and Paste to new Column ManhattanRebel Microsoft Excel Programming 1 22nd Jun 2008 05:46 PM
Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS! =?Utf-8?B?UFNTU0Q=?= Microsoft Excel Worksheet Functions 2 8th Aug 2006 09:31 PM
How do I paste text without auto character change in Word? =?Utf-8?B?S2FybFo=?= Microsoft Word Document Management 2 10th Apr 2006 01:20 PM
How to auto extract data from TELNET and enter in excel =?Utf-8?B?TmVlZGhlbHAyNDI=?= Microsoft Excel Programming 5 28th Jan 2006 05:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:00 PM.