Actually I managed to make a string from the selected listbox field
' Make a string from the selected listbox field
For var = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(var) = True Then
docNameField = docNameField & ListBox1.List(var) _
& vbCrLf
End If
Next
I'm not sure why I'm getting this error though:
"The requested member of the collection does not exist"
On this line of code:
strDocName = ActiveDocument.MailMerge.DataSource.DataFields(doc NameField).Value & ".pdf"
Thoughts? It's getting stuck at the docNameField part I think but I don't know why.