Word OLE Macro

kahunt5

New Member
Joined
Dec 14, 2006
Messages
4
I have a Word template report (about 80 pages) that is a basic boilerplate, with many charts and graphs that are pulled from a Excel report that acts as the sister to the Word report. All of the work that I do is in the Excel file, and pasted into Word at many different points as update-able links (via the paste-special function). Whenever I transfer the file, or create a new file with the Word and Excel sheets paired up, I have to manually update every link that is in the Word file, scrolling and clicking through sub folders. There are over 300 links, and the process takes a long time to complete. The only thing that I need changed is the Excel file name and location from which the Word file is calling the linked information from. The cells and values that the Word grabs from Excel are always in the same place in the Excel document, only the file name changes. Is there a way to create a macro that will update all the links in Word with the file name that I specify without doing this manually through all 300+ links?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,225,229
Messages
6,183,729
Members
453,185
Latest member
radiantclassy

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