Email Macro Creating .tmp Files on Some Computers

Shiremaid

Board Regular
Joined
Jun 18, 2013
Messages
73
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
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Further Information

We have figured out through playing with it that if he has already created a Book 1 with Excel it will go to Book 2 and work fine the first time he clicks.

But he's still the only one it's happening to, everyone else can send the sheet just fine if it gets created as Book 1
 
Upvote 0

Forum statistics

Threads
1,216,590
Messages
6,131,606
Members
449,657
Latest member
Timber5

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top