Excel field pushed into multiple locations on word document?

wilrich25

New Member
Joined
Aug 9, 2008
Messages
3
Hello, I am looking for someone to write code to push information in a single cell on an excel document to multiple locations on a word document.

so the info is a job number and i would like it to be entered the one time in the excel document ant then placed in the word document on the cover page in the middle and on the footer of every page within the "proposal" (word document)

if anyone has some time to spare for this matter it would be greatly appreciated
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
What I suggest is to have a bookmark in the word document and then you can code the excel workbook to open the document and go to the bookmark and paste it in. Example below:

Sub word1()
'Set the reference to use Microsoft Word
'Tools Menu and References Search down for Word
Dim wrdApp As Word.Application
Set wrdApp = CreateObject("Word.Application")
Sheets("SheetName").Range("Cell ID").Copy 'Add Sheet Name and Cell
With wrdApp
.Visible = True
.Documents.Open "Full Path to document and .doc" 'Full Path to document and its name
.Selection.GoTo What:=wdGoToBookmark, Name:="Test" 'Go to a bookmark
.Selection.PasteExcelTable False, False, False
.WordBasic.ViewFooterOnly
ActiveDocument.AttachedTemplate.BuildingBlockEntries(" Blank").Insert _
Where:=Selection.Range, RichText:=True
.Selection.Paste
.ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End With


End Sub
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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