S
String
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 ?
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 ?