I have all my code working...However I wanted to set a password to a word document to open. I want to be able to pass the password in my code, but can't figure it out...Here's my code...
With Appword
.Visible = True
?????supply the password here to open document???????
.Documents.Add "E:\restored folderProjects4-28\Seniors\Seniors Database\PopulateQry.doc"
.ActiveDocument.Bookmarks("bkDate").select
.selection.Text = rstMerge![Event_Date]
.......................................................................
________
Motorcycle Tires
With Appword
.Visible = True
?????supply the password here to open document???????
.Documents.Add "E:\restored folderProjects4-28\Seniors\Seniors Database\PopulateQry.doc"
.ActiveDocument.Bookmarks("bkDate").select
.selection.Text = rstMerge![Event_Date]
.......................................................................
________
Motorcycle Tires
Last edited: