#1
|
|||
|
|||
Reset Word Document
I have created a word document that can be sent as attachment when I click the submit button it sent as attachment. the document needs to be used by many people. I want the document to be blank again after it was sent.
I looked into this code, I didn't work Doc.SaveAs2 FileName:=("S:\DATA\InformationTech\Secured\New Staff") & "\" & Environ("username"), Fileformat:=wdFormatDocument, AddToRecentFiles:=True can somebody explain to my this code thank you Gaafar |
#2
|
||||
|
||||
If you use a Word template, every document you create from it will be 'blank'.
The code snippet you've posted is for saving a document with a new name, but is incomplete as it lacks the filename; it also has nothing to do with 'clearing' a document.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't reset form fields (Word 2013) and conditional formatting | rogelinepaula | Word VBA | 24 | 01-07-2016 03:54 PM |
Word document with Macros with trusted locatin versus Word document 1997-2003 | Cardinal2 | Word | 1 | 11-30-2015 07:42 PM |
Reset Animations | debraholloway | PowerPoint | 0 | 07-14-2011 09:22 PM |
Need to reset default document | Danny Jo | Word | 1 | 07-06-2009 10:24 AM |
Reset on error | kiwichico | Word VBA | 0 | 09-23-2008 08:15 PM |