Excel --> Word Automatic fill ?

audrey

Active Member
Joined
Jul 30, 2008
Messages
491
Hello

I have a very basic excel sheet that needs to automatically fill a word document.

e.g excel Column A --> Name of the Person

Word document Name field.

I need to fill approx 70-100 word sheet like that instead of copy and pasting information.


Thank you in advance for any advices

Audrey
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Thanks you for the prompt response Andrew...

I am also wondering whether it replicates/creates word documents ?
 
Upvote 0
I have now a pdf document that consists of 70 letters, how can I seperate and save them one ?
 
Upvote 0
thank you once again

last question,is there way to rename the sheets the way I want it ?

Sub Splitter()
Selection.EndKey Unit:=wdStory
numlets = Selection.Information(wdActiveEndSectionNumber)
If numlets > 1 Then numlets = numlets - 1
Selection.HomeKey Unit:=wdStory
BaseName = "c:\"
For Counter = 1 To numlets
DocName = "Name of the Person" & Right("000" & LTrim(Str(Counter)), 3)
ActiveDocument.Sections.First.Range.Cut
Documents.Add
Selection.Paste
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.Delete Unit:=wdCharacter, Count:=1
ActiveDocument.SaveAs FileName:=DocName
ActiveWindow.Close
Next Counter
End Sub
 
Upvote 0
xlf2xf.jpg




Currently the macro is naming sheets as Base Name 001 002 003 etc...

I was wondering if there is a way I name of the sheet can be the name after To: within the word document ?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

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