Reply
 
Thread Tools Display Modes
  #1   Report Post  
Joe
 
Posts: n/a
Default word and excel


Is there an easy way to have a word file let the user select a field from an
excel file (like a drop down box) and then have other data related to that
field update in the word file? I assume I have to do this with a macro but
I thought it may be worth asking first.


  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

The following doesn't deal with the Excel-Word part but may give you an idea

' Macro2 Macro

' Macro created 15-11-97 by Doug Robbins to add the address corresponding to
a drop down name

'

Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown

Company = myDrop.ListEntries(myDrop.Value).Name

Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Co mpany).Value

ActiveDocument.FormFields("Text1").Result = Address


--
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
"Joe" wrote in message
...

Is there an easy way to have a word file let the user select a field from
an excel file (like a drop down box) and then have other data related to
that field update in the word file? I assume I have to do this with a
macro but I thought it may be worth asking first.




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
Difficulty pasting Excel data into Word table only in XP versions Digitonomy Tables 0 February 28th 05 12:33 AM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM
Excel worksheet in Word linked text boxes Eduardo Oliveira Page Layout 0 January 5th 05 11:23 PM
Word Field Codes in Excel data file mranz Mailmerge 7 December 11th 04 09:02 AM
formatting links from excel into word (extra line feeds) JGT Microsoft Word Help 1 December 9th 04 11:01 AM


All times are GMT +1. The time now is 02:13 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"