Well that was stupid I didn't notice the typo on the If statement (evenObj).
If anyone's interested this is the complete code with a couple of extra lines so it does exactly what I want it to do.
Sub XDocument_OnSaveRequest(eventObj)
' Write the code to be run before saving here.
If xdocument.view.name <> "Read Only" and xdocument.view.name <> "Unavailable" _
and xdocument.view.name <> "Access Denied" then
if eventObj.IsSaveAs = True then
XDocument.UI.SetSaveAsDialogLocation("C:\")
XDocument.UI.SetSaveAsDialogFileName("form1")
End If
eventObj.IsCancelled = eventObj.PerformSaveOperation
Else
msgbox "You do not have permission to save this document.",vbOKOnly,"Save Failed"
End If
' Write the code to be run after saving here.
eventObj.ReturnStatus = True
End Sub