Hi all,
New to macros and thought i would try and create one for a new form.
Basically, individual1 completes the form and uses the macro to submit to individual2 who then approves/rejects and uses another macro to send to individual3.
The first bit works fine but when the second user receives the file and uses the macro button it comes up with: Runtime error 1004 - method 'sendmail' of object '_workbook' failed.
All macros worked when i set up the file so I wonder if it is because the second user will open from their inbox rather than a saved file?
Macro used is below, any help/advice would be appreciated. Thanks
Sub Button2_Click()
ActiveWorkbook.SendMail Recipients:=Range("b45:B46").Value, Subject:="Expense form"
End Sub
Sub Macro2()
ActiveWorkbook.SendMail Recipients:=Range("C45:C48").Value, Subject:="Expense approved"
End Sub
Sub Macro3()
ActiveWorkbook.SendMail Recipients:=Range("D45").Value, Subject:="Expense rejected"
End Sub
New to macros and thought i would try and create one for a new form.
Basically, individual1 completes the form and uses the macro to submit to individual2 who then approves/rejects and uses another macro to send to individual3.
The first bit works fine but when the second user receives the file and uses the macro button it comes up with: Runtime error 1004 - method 'sendmail' of object '_workbook' failed.
All macros worked when i set up the file so I wonder if it is because the second user will open from their inbox rather than a saved file?
Macro used is below, any help/advice would be appreciated. Thanks
Sub Button2_Click()
ActiveWorkbook.SendMail Recipients:=Range("b45:B46").Value, Subject:="Expense form"
End Sub
Sub Macro2()
ActiveWorkbook.SendMail Recipients:=Range("C45:C48").Value, Subject:="Expense approved"
End Sub
Sub Macro3()
ActiveWorkbook.SendMail Recipients:=Range("D45").Value, Subject:="Expense rejected"
End Sub