Z
zsplash
I have the following code which works fine unless the filename already
exists, in which case it "freezes" and won't do anything, and I am forced to
cancel. How can I modify this code to save an already-existing filename?
Private Sub cmb4SaveAll_click()
Dim CommonDialog3 As Dialog
Set CommonDialog3 = Dialogs(wdDialogFileSaveAs)
On Error Resume Next
With CommonDialog3
.Name = ""
If .Show = 0 Then ' if cancel, exit sub
Exit Sub
End If
End With
End Sub
TIA
exists, in which case it "freezes" and won't do anything, and I am forced to
cancel. How can I modify this code to save an already-existing filename?
Private Sub cmb4SaveAll_click()
Dim CommonDialog3 As Dialog
Set CommonDialog3 = Dialogs(wdDialogFileSaveAs)
On Error Resume Next
With CommonDialog3
.Name = ""
If .Show = 0 Then ' if cancel, exit sub
Exit Sub
End If
End With
End Sub
TIA