|
-
Mar 8th, 2006, 07:50 AM
#1
Thread Starter
New Member
[RESOLVED] Close template if not doc not saved
I made a template in WORD
But what am trying to do now is that
When the template is open should be a wdDialogFileSaveAs should be started
But when the user clicks on cancel the template should be closed and not be used anymore
i thought of solving it like that
MsgBox "SAVE befor you start … "
activedocument.Saved = False
CommandBars.FindControl(ID:=3).Execute
If activedocument.Saved Then
' MsgBox "The document was saved."
' If MsgBox("you dont want to save the doc? ?", vbYesNo + vbQuestion, SAVING) = vbNo Then
' activedocument.Close
'
activedocument.Close
RecentFiles(1).Open
yesNo = yes
Else
MsgBox "somting "
But i always get Error or it doesn’t work good ..
Help .. any tips ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|