Create and save word documents based on cell values?

The following code with give you the heads up, make sure your read the comments in Green when you paste and set the path to the save location

Sub createWordDoc()
'You need to set the reference to use Word VBA
'Click Tools ----> References ---> Search down the list for Microsoft Word XX.Object Library
'--> XX being the version of Office you are using
Dim wrdApp As Word.Application
Set wrdApp = CreateObject("Word.Application")
With wrdApp
.Visible = True
.Documents.Add
.Selection.TypeText Text:=Range("B3").Value
.ActiveDocument.SaveAs Filename:="The drive and path" & Range("C3").Value & "doc"
End With
End Sub
 
Upvote 0
Not quite what I was looking for but thanks. I need to loop through every cell on a row and concatenate on the word doc, AND add one of the cells as a network hyperlink, AND repeat for every row. I think I found the solution with a mail merge split add-in. Trouble I'm having now is I use 64bit office. Going to have to commandeer another computer for this.
 
Upvote 0

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