Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-15-2014, 09:16 AM
KSReynolds KSReynolds is offline Program Word to Save File As... Windows 7 32bit Program Word to Save File As... Office 2003
Novice
Program Word to Save File As...
 
Join Date: Oct 2013
Posts: 7
KSReynolds is on a distinguished road
Default My Code

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
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Program Word to Save File As... 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
Program Word to Save File As... Word Mail Merge File Save mickeyw3340 Mail Merge 2 12-18-2012 11:30 AM
Program Word to Save File As... MS Word XP file save wayne Word 8 08-15-2011 03:56 PM
Program Word to Save File As... Word Macro: Save file as text with current file name jabberwocky12 Word VBA 2 10-22-2010 12:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft