Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2015, 11:48 AM
gaafar.dafalla@illinois.g gaafar.dafalla@illinois.g is offline Reset Word Document Windows 7 32bit Reset Word Document Office 2013
Novice
Reset Word Document
 
Join Date: Dec 2015
Posts: 1
gaafar.dafalla@illinois.g is on a distinguished road
Smile 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
Reply With Quote
  #2  
Old 12-01-2015, 04:39 PM
macropod's Avatar
macropod macropod is offline Reset Word Document Windows 7 64bit Reset Word Document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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



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
Reset Word Document 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
Reset Word Document 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

Other Forums: Access Forums

All times are GMT -7. The time now is 05:30 AM.


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