picassobrown
Technical User
Please can anyone see why the code below does not work in excel 2007 this has currently been working fine in 2003 but now i keep getting the error msg
the command button is designed to save the form and put it directly into outlook with the built in address
Private Sub CommandButton1_Click()
Dim Response As Integer
Dim ManagerPin As Long
On Error GoTo ErrHandler
Response = MsgBox("Are you sure you want to Save and Send ?", vbYesNo + _
vbQuestion)
If Response = vbYes Then
Sheet1.SaveAs "c:\VehComForm.xls"
Application.Dialogs(xlDialogSendMail).Show _
("ukcustomersupport@akzonobel.com")
Application.Workbooks.Close
End If
Exit Sub
ErrHandler:
MsgBox ("Invalid Entry")
End Sub
the command button is designed to save the form and put it directly into outlook with the built in address
Private Sub CommandButton1_Click()
Dim Response As Integer
Dim ManagerPin As Long
On Error GoTo ErrHandler
Response = MsgBox("Are you sure you want to Save and Send ?", vbYesNo + _
vbQuestion)
If Response = vbYes Then
Sheet1.SaveAs "c:\VehComForm.xls"
Application.Dialogs(xlDialogSendMail).Show _
("ukcustomersupport@akzonobel.com")
Application.Workbooks.Close
End If
Exit Sub
ErrHandler:
MsgBox ("Invalid Entry")
End Sub