#1   Report Post  
Posted to microsoft.public.word.docmanagement
User
 
Posts: n/a
Default Excel as data source?

I have a table in MS Word and i want when users type in #80282 in one of the
cell in the table (in MS Word), it will look up my excel file for that code
and have the details about that code (like product ID, price etc) added
automatically into my Word's table.

Is that possible?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default Excel as data source?

Hi ?B?VXNlcg==?=,

I have a table in MS Word and i want when users type in #80282 in one of the
cell in the table (in MS Word), it will look up my excel file for that code
and have the details about that code (like product ID, price etc) added
automatically into my Word's table.

Is that possible?

Not directly, no, as there's no way to trap keystrokes in Word.

Indirectly, yes. It would require a macro solution, and you'd have to consider
what you want to use a the "trigger" for the macro to execute. You could have
the user press a particular key combination, you could use the SelectionChange
event, or perhaps you could use form fields and assign it to the exit property
of the textbox form field in the table cell.

The basic code for accessing Excel information from within Word you'll find at
word.mvps.org. For further help on realizing your project, you should ask in a
word.vba newsgroup as you'll find more people there who can help you.

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
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems connecting to Excel data source maryj Mailmerge 1 March 31st 06 09:22 PM
Word 2002 cannot find its Excel data source for mail merge harryedwards Mailmerge 5 November 23rd 05 11:09 AM
Error finding excel data source Rita Mailmerge 1 March 22nd 05 09:01 PM
Mail Merge Issue With Office 97 - Excel Data Source Matt Thorley Mailmerge 1 February 15th 05 11:38 PM
Mail merge error occurs when filtering Excel data source Dave Mailmerge 1 December 2nd 04 10:46 PM


All times are GMT +1. The time now is 01:32 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"