I am using Ecel 2007.
In the workbook I am having a problem with, the users need to be able to send just the one sheet to our purchaser instead of having to send the entire (and rather large) workbook.
I've been using the following code
Sub Email3()
'
' Email3 Macro
'
'
Sheets("Quote Request").Select
Sheets("Quote Request").Copy
ActiveWorkbook.SendMail Recipients:="fake@notreal.com"
End Sub
And it works fine for everyone except one foreman. The first time he hits the button it opens the email program and attaches a .tmp file instead of the .xlsx the rest of us get.
It will work if he pushes it a second time. But I would like to get it working for him the first time if I can.
Thanks
In the workbook I am having a problem with, the users need to be able to send just the one sheet to our purchaser instead of having to send the entire (and rather large) workbook.
I've been using the following code
Sub Email3()
'
' Email3 Macro
'
'
Sheets("Quote Request").Select
Sheets("Quote Request").Copy
ActiveWorkbook.SendMail Recipients:="fake@notreal.com"
End Sub
And it works fine for everyone except one foreman. The first time he hits the button it opens the email program and attaches a .tmp file instead of the .xlsx the rest of us get.
It will work if he pushes it a second time. But I would like to get it working for him the first time if I can.
Thanks