Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Excel link with Word

I am creating a file that is like a menu that has descriptions in word and
then I was hoping to put field link in word to tie to a spreadsheet that I
could update the prices. How would I create the links in the word document
to take the info from my excel file?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Excel link with Word

Insert object Create from file Browse ...choose the spreadhsheet that
you want to link to... Insert

Does that do what you want?

Regards,
Ryan---

--
RyGuy


"gboll" wrote:

I am creating a file that is like a menu that has descriptions in word and
then I was hoping to put field link in word to tie to a spreadsheet that I
could update the prices. How would I create the links in the word document
to take the info from my excel file?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Excel link with Word

no, that brings in the entire worksheet

I have a file in excel that has all the prices like:
15900
16500
12300
etc

then the word document I have is this:

Basic Widget
Model............................................. ...........................
XXXXX

Where the XXXXX is I would like to link to the spreadsheet so that the 16500
number is linked or embedded into the word document.

Then if I change all the prices it automatically updates my price book

"ryguy7272" wrote:

Insert object Create from file Browse ...choose the spreadhsheet that
you want to link to... Insert

Does that do what you want?

Regards,
Ryan---

--
RyGuy


"gboll" wrote:

I am creating a file that is like a menu that has descriptions in word and
then I was hoping to put field link in word to tie to a spreadsheet that I
could update the prices. How would I create the links in the word document
to take the info from my excel file?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Excel link with Word

Ah, now I see what you want. OK, it is a little tricky, but hang in there
and you will get it!

In Excel, you need code such as this:
Sub PushToWord()

Dim objWord As New Word.Application
Dim doc As Word.Document
Dim bkmk As Word.Bookmark
sWdFileName = Application.GetOpenFilename(, , , , False)
Set doc = objWord.Documents.Open(sWdFileName)
'On Error Resume Next

objWord.ActiveDocument.variables("BrokerFirstName" ).Value =
Range("BrokerFirstName").Value
objWord.ActiveDocument.variables("BrokerLastName") .Value =
Range("BrokerLastName").Value

objWord.ActiveDocument.Fields.Update

'On Error Resume Next
objWord.Visible = True

End Sub

My Cell B1 is a named range, and is is named 'BrokerFirstName'. My cell B2
is also a named range and it is named 'BrokerLastName'. Set it up any way
you want; for your specific purposes.

Make sure in Excel's VBE, you click Tools References Microsoft Word

Now, in Word, you need this;
Insert Field DocVariable New Name (and name it BrokerFirstName, or
whatever you wish). Then click OK. Repeat for subsequent variables. Save
the Word document. Run the macro through Excel, search for the Word doc.
that you just created; it will open and populate with the data in the named
ranges in Excel. Control the DocVariables with Alt+F9 on the keyboard.
That's it! You're in business gboll!!

Regards,
Ryan---

PS, take a look at this when you have a chance:
http://word.mvps.org/

http://word.mvps.org/faqs/interdev/c...xlfromword.htm

http://word.mvps.org/FAQs/InterDev/C...WordFromXL.htm



--
RyGuy


"gboll" wrote:

no, that brings in the entire worksheet

I have a file in excel that has all the prices like:
15900
16500
12300
etc

then the word document I have is this:

Basic Widget
Model............................................. ...........................
XXXXX

Where the XXXXX is I would like to link to the spreadsheet so that the 16500
number is linked or embedded into the word document.

Then if I change all the prices it automatically updates my price book

"ryguy7272" wrote:

Insert object Create from file Browse ...choose the spreadhsheet that
you want to link to... Insert

Does that do what you want?

Regards,
Ryan---

--
RyGuy


"gboll" wrote:

I am creating a file that is like a menu that has descriptions in word and
then I was hoping to put field link in word to tie to a spreadsheet that I
could update the prices. How would I create the links in the word document
to take the info from my excel file?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to link excel to word Aurox47 Excel Discussion (Misc queries) 0 February 26th 08 10:12 AM
PASTE LINK option not available when I select PASTE SPECIAL to link an image in Excel to a Word document. tln Links and Linking in Excel 0 April 22nd 07 04:28 PM
Link table from excel to word using word VBA [email protected] Excel Discussion (Misc queries) 7 January 9th 07 05:57 PM
VB Help WORD/EXCEL LINK ChrisMattock Excel Discussion (Misc queries) 3 May 4th 06 05:41 AM
Excel - Word Link NIGHTMARE! Z_Webnut Excel Discussion (Misc queries) 0 September 9th 05 08:42 AM


All times are GMT +1. The time now is 11:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"