Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Tables / July 2006

Tip: Looking for answers? Try searching our database.

field = to

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joanne - 26 Jul 2006 00:59 GMT
I have an excel table in my document.
It lists invoice numbers and their amounts, then gives me a total.
What I would like to do is make a field in my doc = to the  total
generated by the excel table.
Looking at insert/fields I don't know whether to use doc automation,
links and references, equations and formulas or if none of the above
are correct.
Please give me some help on this problem
Thanks a bunch ahead of time
Joanne
Jezebel - 26 Jul 2006 02:03 GMT
Select and copy the total within the embedded sheet.
Select the location in the document where you want the total to appear.
Click Edit > PasteSpecial. Check 'Paste Link' and select 'Unformatted text'
from the 'As' list.

You'll end up with a field that looks something like --

{ LINK Word.Document "C:\\MyFolder\\MyFile.doc" "OLE_LINK1" \a \t }

This will update automatically when the embedded sheet changes.

>I have an excel table in my document.
> It lists invoice numbers and their amounts, then gives me a total.
[quoted text clipped - 6 lines]
> Thanks a bunch ahead of time
> Joanne
Joanne - 26 Jul 2006 02:20 GMT
Thanks for your prompt help. You have made my life that much easier.

>Select and copy the total within the embedded sheet.
>Select the location in the document where you want the total to appear.
[quoted text clipped - 17 lines]
>> Thanks a bunch ahead of time
>> Joanne
Joanne - 26 Jul 2006 13:01 GMT
Jezebel
Here is my link, which is not updating when I make changes:
{LINK Excel Sheet 8 "C:\\Documents and Settings\Joanne\\My
Documents\\non-discount.doc" "_1215402019!Sheet1!R8C2" \a \t

Can you see where I might have made a mistake that is causing it to
not update?
And while I have your busy attention, is there a way to pass the cell
addr from the excel sheet as a variable to the link so that if the
list happens to be longer, it will still update?

Thanks for your time
Joanne

>Select and copy the total within the embedded sheet.
>Select the location in the document where you want the total to appear.
[quoted text clipped - 17 lines]
>> Thanks a bunch ahead of time
>> Joanne
Jezebel - 26 Jul 2006 15:07 GMT
First: don't know why your link isn't updating. The _121... bit is a
Word-generated bookmark. When I tried it, I got a reference like that with
the document not saved, replaced by OLE_LINK1 (which is also an automatic
bookmark) when the document was saved.
Did you try updating fields?

As for making the cell reference variable: in principle you should be able
to name the cell, then use the cell name in place of the "R8C2" -- this
certainly works from a linked workbook. Never tried it with an embedded
sheet.

> Jezebel
> Here is my link, which is not updating when I make changes:
[quoted text clipped - 32 lines]
>>> Thanks a bunch ahead of time
>>> Joanne
Joanne - 26 Jul 2006 21:51 GMT
The error I am getting is:
Objects in this document contain links to files that cannot be found.
The linked information will not be updated.

The field does not update auto at all, but if I do Select All, then
F9, it will update - but only once. If I make another change it will
give me the above error.

Thought of putting a command button on the doc and code it to update
when changes are completed and the button is manually pushed, but not
sure how to code it and also, the button prints out on the doc and
this is not a good thing. Could find no place in buttons properties to
cause it to be visible = false at print time.

I read at word.mvps.org/FAQS/ to set tools>Options>print to 'update
fields' and it should update on print preview, but it does not work
there either.

The FAQ also says to do Tools>Options>General and set "update
automatic links at open" but states that this method is not really
reliable - Seems to me that none of these things are reliable.

Any ideas?
Thank you
Joanne

>First: don't know why your link isn't updating. The _121... bit is a
>Word-generated bookmark. When I tried it, I got a reference like that with
[quoted text clipped - 43 lines]
>>>> Thanks a bunch ahead of time
>>>> Joanne
Jezebel - 27 Jul 2006 00:37 GMT
Did you create the field by inserting it as a field, or by using
PasteSpecial?

If you created it manually, the message is telling you that there is some
error with the file name -- note that backslashes have to be doubled.

> The error I am getting is:
> Objects in this document contain links to files that cannot be found.
[quoted text clipped - 69 lines]
>>>>> Thanks a bunch ahead of time
>>>>> Joanne
Joanne - 27 Jul 2006 01:16 GMT
I created the field by using Paste Special, Unformatted Text, and
Paste Link as you instructed. When I look at the field, there are \\
thruout the link address except at the end where it has the \a \t.
BTW, would you tell me what the \a and \t are for?

I have moved the file to my laptop and here it still does not update
automatically, but will repeatedly update using Ctrl+A, and F9.

Go figure -  I'm sure I haven't a clue what is happening. I think if
Ctrl+a and F9 will continue to be reliable, I will just record a macro
and then put a command on the toolbar and let it go at that, unless
you have some other idea that would make it go automatically.

As always, thanks for considering my request. Your time is
appreciated.
Joanne

>Did you create the field by inserting it as a field, or by using
>PasteSpecial?I c
[quoted text clipped - 75 lines]
>>>>>> Thanks a bunch ahead of time
>>>>>> Joanne
Jezebel - 27 Jul 2006 05:14 GMT
\a = update automatically
\t = insert as unformatted text

These are called 'switches' - for future reference, you can find the
switches for a field by looking up the field code in Help.

>I created the field by using Paste Special, Unformatted Text, and
> Paste Link as you instructed. When I look at the field, there are \\
[quoted text clipped - 96 lines]
>>>>>>> Thanks a bunch ahead of time
>>>>>>> Joanne
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.