![]() |
|
|
|
#1
|
|||
|
|||
|
This is my code from Access: Dim myfilename As String myfilename = ReportDir & LabNumber & "_" & ItemNumber & "_" & CATEGORY & ".doc" Dim mypassword As String mypassword = DecryptPIN(DLookup("PIN_NUMBER", "ANALYST", "FULL_NAME='" & ana_txt & "'")) 'save to temp directory wordapp.ActiveDocument.SaveAs filename:=myfilename, WritePassword:=mypassword wordapp.ActiveDocument.Close |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Word VBA - Save file as a string contained within the word (always same row and leng)
|
RG87 | Word VBA | 1 | 05-21-2014 05:39 AM |
| How do I save a Word file with a macro for distribution? | leemoreau | Word VBA | 3 | 10-04-2013 08:06 AM |
Word Mail Merge File Save
|
mickeyw3340 | Mail Merge | 2 | 12-18-2012 11:30 AM |
MS Word XP file save
|
wayne | Word | 8 | 08-15-2011 03:56 PM |
Word Macro: Save file as text with current file name
|
jabberwocky12 | Word VBA | 2 | 10-22-2010 12:23 PM |