Dynamic Link Excel 365 to Word

SeliM

Board Regular
Joined
Aug 10, 2023
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Good morning,
I have an Excel named range (ComNamesforList) that will provide all company names that have submitted a tender for works.

I have a report template that holds variety of management information and the need for a full list of companies that submitted tenders.

I can use the copy special past link process to link the list however I would like the list to be dynamic to contract or expand depending on the number of tenders received.

I have tried a variety of (guess) ways to improvise and failed.

Would you have any advice to assist please.

Many thank for reading my post and in advance for your advice.

Mel
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
First define a named range for the range you want to copy.

Copy the named range and Paste Special, As Link

If you add rows or columns, update the definition of the named range to include the added rows/columns.

In the Word document select the table then hit F9 to refresh the table.

It's not 100% automatic but it avoids having to copy & paste each time.
 
Upvote 0
Thanks Jeff
What seems so straight forward frequently can be the most frustrating.
I have tried many formats and followed your advice and cannot get the table inserted - I get the address of the named range instead!

I created a simple named range using - ="Sheet1!$B$3:"&ADDRESS(COUNTA(B:B)+2,3,1) at $E$3

Used Formulas Name Manager to create the name (=indirect($E$3)) - Range is called "Table"

attempts:
1. Copied the name (Table), to word using paste - there is no option for paste special only - Paste unformatted text

2. Copied the named range formula (as above) at address $E$3 - used paste special, link and get "Sheet1!$B$3:$C$14"

3. Copied named range name (Table) and used insert object, Text from file, named range - Table - word cannot find the range of data

I cannot find where I am going wrong. Any help much appreciated.

Mel
 
Upvote 0
This isn't going to work with a range named using INDIRECT. The description in your first post sounds like there is no need for INDIRECT.

The way to do this is name a static range, then select that range and copy it. If you copy a range that is defined using INDIRECT (or any other dynamic range), Excel will not realize that this range is the same one you named.

You need to define a named range that is statically determined. That is, when you select the cells in the range, you should see the name of the range in the address box.

Your named range needs to be
Excel Formula:
=Sheet1!$B$3:$C$14
As I said, when you add/remove rows you will have to manually update the formula for the named range, but it saves you from having to copy and paste it again into Word.


1726631154300.png
 

Attachments

  • 1726631000737.png
    1726631000737.png
    53.8 KB · Views: 3
Upvote 0
Thanks very much for all your work on this Jeff, guess the indirect problem shows my level of competence.

I'll see how I go

R
M
 
Upvote 0
I have an Excel named range (ComNamesforList) that will provide all company names that have submitted a tender for works.

I have a report template that holds variety of management information and the need for a full list of companies that submitted tenders.

I can use the copy special past link process to link the list however I would like the list to be dynamic to contract or expand depending on the number of tenders received.
Simple:
1. Copy the named range from Excel and paste it into Word using Paste Special>Paste Link and choose your desired paste format.
2. Select the pasted range in Word and press Shift-F9 to expose the field code, which will look something like:
{LINK Excel.Sheet.12 "C:\\FilePath\\FileName.xlsx" "WorksheetName!R70C1:R75C10" \a \p}
3. Replace the cell range (R70C1:R75C10) in the above example, with your range name, so that you get
{LINK Excel.Sheet.12 "C:\\FilePath\\FileName.xlsx" "WorksheetName!ComNamesforList" \a \p}
4. Press F9 to update the field display
From now on, the displayed range in the document will expand/contract to match the named range in Excel.
 
Upvote 0
Solution
Have you tried this when the named range is defined using INDIRECT?
 
Upvote 0
No. I'm simply addressing the question as originally posed, which doesn't suggest INDIRECT was in use. That only seems to have become part of the issue after you introduced it - and which you later seemed to indicate wasn't needed.
 
Upvote 0
OP introduced use of INDIRECT in post #3. I replied that won't work for pasting a link that adjusts dynamically. Other than that your solution seems to do pretty much what I described, although my version does not require editing the link code. If you select the range, and the name of the range shows up in the Range box, you can copy/paste link.
 
Upvote 0
Good morning
I thought I would let you know how I think I’ve got the system to operate consistently.

1. Used insert Table for the existing table of data
2. Created a range address using static commencement say Table 3 viz =“‘Table 3’!$A$4:”&address(counta($B:$B)+3,4,1) - mightn’t have that quite right but I’m sure you’ll get the strategy
4. Under Formulas, named ranges created a named range Table3 with an indirect reference to the address in 3 above
5 copied the table as exist pasted to word document with link as Microsoft image
6. Selected image Shift F9 and replaced the static range with Table3
7 Shift F9 to reveal the table

Have tested a couple of times - seems sound and seems to work

Just thought I’d share

R
Mel
 
Upvote 0

Forum statistics

Threads
1,224,808
Messages
6,181,073
Members
453,020
Latest member
mattg2448

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top