V
VinceB1 via OfficeKB.com
I have a document that updates many bookmarks before saving document,
I have notices a problem with this in that if its a template, and its the
first time saving the work all goes well untill you click cancel on the
window that comes up asking for a location to save
this in tern causes the code to stop running and a error to occur does
anybody know a nice way around this
peice of code causing problem is
If .Type = wdTypeDocument Then
If .ProtectionType <> wdNoProtection Then
.Unprotect
End If
End If
.Save
End With
End Sub
Im looking for some sort of procedure that if you decide not to save and
click cancel or close the window. the code will stop running.
Any help is greatly appreciated..
Thanks
I have notices a problem with this in that if its a template, and its the
first time saving the work all goes well untill you click cancel on the
window that comes up asking for a location to save
this in tern causes the code to stop running and a error to occur does
anybody know a nice way around this
peice of code causing problem is
If .Type = wdTypeDocument Then
If .ProtectionType <> wdNoProtection Then
.Unprotect
End If
End If
.Save
End With
End Sub
Im looking for some sort of procedure that if you decide not to save and
click cancel or close the window. the code will stop running.
Any help is greatly appreciated..
Thanks