vba Help! using Excel worksheet as source to update Word document.

Xceller

Active Member
Joined
Aug 24, 2009
Messages
265
Hi vba gurus:

I have a Word document that I would like to link to an Excel worksheet (Below). I want to be able to edit/change the data in the Excel table and have the variables (highlighted in red) update automatically in Word.

The variables in the Word document highlighted in red below correspond to various cells in the Excel table below.

Thank you for looking into this!


OVERVIEW AND BUSINESS TRENDS
Results for the Three Months Ended July 1, 2011
Consolidated revenues for the second quarter of 2011 were $2.4 billion, an increase of $110.9 million, or 4.9%, compared to the same period in 2010. For the three months ended July 1, 2011, DEG, which we acquired in September 2010, generated $115.0 million in revenues, and ABC Holdings, Inc. (“ABC”), which we acquired in June 2011, generated $27.6 million in revenues. By comparison, neither of the acquired companies contributed to our consolidated revenues during the second quarter of fiscal year 2010. During the quarter, revenues increased from our work in the federal and industrial and commercial market sectors, while we experienced a decline in revenues from our work in the power and infrastructure market sectors. Net income attributable to Parent Corporation for the second quarter of 2011 was $66.8 million compared with $61.9 million during the second quarter of 2010, an increase of 7.9%.
Cash Flows
During the six months ended July 1, 2011, we generated $262.9 million in cash from operations. Cash flows from operations increased by $142.8 million for the six months ended July 1, 2011 compared with the same period in 2010. This increase was primarily due to the timing of payments from clients on accounts receivable, project performance payments and vendor and subcontractor payments. The increase was partially offset by higher income tax payments and higher defined benefit plan contributions.
On June 1, 2011, we acquired ABC for a purchase price of approximately $259 million, net of cash acquired.
In addition, we had cash outflows of $136.7 million related to repurchases of common stock for the six months ended July 1, 2011. During the first six months of fiscal year 2011, we had a net borrowing of $50.0 million under our revolving line of credit.
Acquisition
On June 1, 2011, we completed the acquisition of ABC. The operating results of ABC after the acquisition date are included in our condensed consolidated financial statements under the Northwest business. The operating results generated from this newly acquired business during this period were not material to our consolidated results for the three- and six-month periods ended July 1, 2011.
Book of Business
As of July 1, 2011 and December 31, 2010, our total book of business was $28.7 billion and $29.1 billion, respectively. The decrease in our book of business in the first six months of fiscal year 2011 occurred primarily in our Northeast Region. This decrease was partially offset by an addition of $0.8 billion to our book of business resulting from our acquisition of ABC. Please see Book of Business on page 36 for more information.

AB
C

<tbody>
</tbody>
1Current Date
July 1,2011

<tbody>
</tbody>
2
Last Year

<tbody>
</tbody>
2010

<tbody>
</tbody>
3
This QTR

<tbody>
</tbody>
Three

<tbody>
</tbody>
4
Last QTR

<tbody>
</tbody>
Secod

<tbody>
</tbody>
5
First QTR

<tbody>
</tbody>
First

<tbody>
</tbody>
6
YTD Months

<tbody>
</tbody>
Six

<tbody>
</tbody>
7
Consolidated revenues

<tbody>
</tbody>
2.4

<tbody>
</tbody>
8
Incr / Decr

<tbody>
</tbody>
increase

<tbody>
</tbody>
9
Incr / Decr in millions

<tbody>
</tbody>
110.9

<tbody>
</tbody>
10
Percent increased

<tbody>
</tbody>
4.9%

<tbody>
</tbody>
11
Same Pd Last Yr

<tbody>
</tbody>
2010

<tbody>
</tbody>
12
DEG revenue

<tbody>
</tbody>
115.0

<tbody>
</tbody>
13
ABC revenue

<tbody>
</tbody>
27.6

<tbody>
</tbody>
14
This Yr Net Income Parent

<tbody>
</tbody>
66.8

<tbody>
</tbody>
15
last Yr Net Income Parent

<tbody>
</tbody>
61.9

<tbody>
</tbody>
16
Parent Income Increase / decrease

<tbody>
</tbody>
increase

<tbody>
</tbody>
17
Parent Income Increase / decrease percent

<tbody>
</tbody>
7.9%

<tbody>
</tbody>
18
Cash from operations

<tbody>
</tbody>
262.9

<tbody>
</tbody>
19
Cash from operations increase/decrease

<tbody>
</tbody>
increased

<tbody>
</tbody>
20
Increase in cash from operations

<tbody>
</tbody>
142.8

<tbody>
</tbody>
21
Purchase price of acquisition

<tbody>
</tbody>
259

<tbody>
</tbody>
22
Cash outflows for repurchases of common stock

<tbody>
</tbody>
136.7

<tbody>
</tbody>
23
Net borrowing under revolving line of credit

<tbody>
</tbody>
50.0

<tbody>
</tbody>
24
Book of business as of July 1, 2011

<tbody>
</tbody>
28.7

<tbody>
</tbody>
25
Book of business as of December 31, 2010

<tbody>
</tbody>
29.1

<tbody>
</tbody>
26
Book of business increase/decrease

<tbody>
</tbody>
decrease

<tbody>
</tbody>
27
Book of business $ decrease

<tbody>
</tbody>
0.8

<tbody>
</tbody>
28
Page number

<tbody>
</tbody>
36

<tbody>
</tbody>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Yes, I will try to extend it to the rest of the report. If I run into issues and need help, do you mind if I ask you again?

I tried your other suggested approach of copying and pasting a link in Word. "In Word, choose Paste Special. Select the "Past Link" check box on the left side of the dialog, Select Unformatted text, and click OK. (If you choose Formatted text, the formatting applied in Excel will transfer over to your Word doc, probably not what you want). Format the text the way you want it in Word...it should "stick" even when the data is updated." I prefer this approach. Is there a way I can easily see the cross-reference of the numbers from Excel to Word? I can click the numbers in Word to find the link in Excel and tried viewing all the links, but there isn't a report or list I can print to see all the link references.
 
Upvote 0
I'm not sure if you can print a list of just the links (I'll see what's available through VBA), but you can at least look at the list.
From the "Office" button (assuming Excel 2007 or later), choose Prepare, then scroll to the bottom of the dialog and select "Edit Links to Files".
Another approach is to print the report with the field codes instead of the values. To do that, from the Office button choose "Word Options" (button near the bottom of the dialog), then "Advanced". Scroll down to the Print section, and choose "Print Field Codes instead of their values". When you print the report, you will get the full field code, which will reference the Excel cell that's referenced.
Hope that helps,
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,029
Members
449,092
Latest member
ikke

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