Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Help with saving
I have a template that is saved on a sharepoint site and used by many
different people. Problem is when people open the template and add text, then go to save, they inadvertently save the file as a .dot file. I have a AutoNew macro that would force the file to be saved as a .doc. This works if the file is opened directly from a directory, but it does not work when opened from where it is a link on the sharepoint internet site. Is there another way to force the file to save as a .doc? Or is there a better way to do this? Below is the code for the AutoNew macro: Sub AutoNew() Dim sPath As String sPath = Options.DefaultFilePath(Path:=wdDocumentsPath) ChangeFileOpenDirectory sPath On Error GoTo Cancelled ActiveDocument.Save Application.DefaultSaveFormat = "" Exit Sub Cancelled: If Err.Number = 4198 Then MsgBox "User Cancelled" End If End Sub |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Help with saving
You had better ask in a programming newsgroup such as
microsoft.public.word.vba.general for assistance with this. -- Stefan Blom Microsoft Word MVP "caj" wrote: I have a template that is saved on a sharepoint site and used by many different people. Problem is when people open the template and add text, then go to save, they inadvertently save the file as a .dot file. I have a AutoNew macro that would force the file to be saved as a .doc. This works if the file is opened directly from a directory, but it does not work when opened from where it is a link on the sharepoint internet site. Is there another way to force the file to save as a .doc? Or is there a better way to do this? Below is the code for the AutoNew macro: Sub AutoNew() Dim sPath As String sPath = Options.DefaultFilePath(Path:=wdDocumentsPath) ChangeFileOpenDirectory sPath On Error GoTo Cancelled ActiveDocument.Save Application.DefaultSaveFormat = "" Exit Sub Cancelled: If Err.Number = 4198 Then MsgBox "User Cancelled" End If End Sub |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Saving what to where? | Microsoft Word Help | |||
Saving mail merge template not saving setting in address block | Mailmerge | |||
saving word document that will execute link after saving | Microsoft Word Help | |||
Saving to CD-R | Microsoft Word Help | |||
When saving document the saving box always appiers under the docum | Microsoft Word Help |