Good Morning
I have created a Bill Template, and to make sure that the bill has been refreshed, (i.e F9) I have written code to pick up a command and refresh table figures.
The code I have is as follows:
Sub FileSave()
For Each SingleField In ActiveDocument.Fields
SingleField.Update
SingleField.ShowCodes = False
Next
ActiveDocument.Save
End Sub
The problem I am having is if the user clicks on Save and then clicks Cancel they are getting a debug error.
Does anyone know how I could get around this?? Is there is code to stop this happening??
I appreciate any help. Thanks,
I have created a Bill Template, and to make sure that the bill has been refreshed, (i.e F9) I have written code to pick up a command and refresh table figures.
The code I have is as follows:
Sub FileSave()
For Each SingleField In ActiveDocument.Fields
SingleField.Update
SingleField.ShowCodes = False
Next
ActiveDocument.Save
End Sub
The problem I am having is if the user clicks on Save and then clicks Cancel they are getting a debug error.
Does anyone know how I could get around this?? Is there is code to stop this happening??
I appreciate any help. Thanks,