Discussion Locked
0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
VBA code to open a Word template for edit. When clicking doc save, Word will prompt for file location and doc name, and the file location (full path with file name) will update into the hyperlink field on an Access form.
5 replies
by carquiza
Hi,
Why not try this code?
Insert this code on a button or hyperlink:
Sub Command_Click()
Set Word = CreateObject("word.application")
Word.Visible = True
Word.Documents.Open FileName:=App.Path & "\Name of Word Document File.doc"
End Sub
For Saveas its replaced Word.Documents.SaveAs Filename:.....
Hope this helps a bit.
Cheers,
Mel Arquiza
Home Page Design
http://hpd.welcome.to
by qtgirl88
The question was auto-closed by TechRepublic
See thos site, "FREE Word add-in utilities"
http://www.cdev.co.uk/utils.htm
(REMOVE SPACES from the pasted URL.)
Examples and downloads.
Maxwell
by qtgirl88
The question was auto-closed by TechRepublic
by qtgirl88
This question was auto closed due to inactivity
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Question Unanswered
Best Way to Make Long WordPress Location Guides Mobile Friendly
0 helpful
0 replies
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies