sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,422
- Office Version
- 2016
- Platform
- Windows
I'm using this to prompt the user to save a a word document in their chosen location;
If they do go on to save I need the userform to be unloaded, but the bit I am struggling with is how to simply return to the userform if they click cancel and don't save?
Code:
With Application.Dialogs(wdDialogFileSaveAs).Name = "Welfare Document - RM " & TextRM.Value
.Format = wdFormatXMLDocument
.Show
End With
If they do go on to save I need the userform to be unloaded, but the bit I am struggling with is how to simply return to the userform if they click cancel and don't save?