Excel: Send as attachment and VBA activeworkbook.sendmail

Rowrow

New Member
Joined
Jan 5, 2014
Messages
6
Hi

I am using Microsoft Office Professional 2010.

I am having problems with: excel's send as attachment; vba's activeworkbook.sendmail; and the ability to open excel documents from emails (outlook attachments).

The effects xlsx; xls; xlsm; xlsb file types. With csv files, I am able to open them from email, but the sendmail and send as attachment process do not work.


When attempting to open from email, it prompts you as to whether you would like to attempt to recover the contents of the workbook. It fails this process. You can copy those very same workbooks to a local drive and open them directly without any problems.

When using the send as attachment process the following error is thrown: "The file could not be accessed. Try on of the following:..".

When using VBA's thisworkbook.sendmail process the error "... file could not be found..." is thrown.

Before the send as attachment process and the sendmail process, in the lower right corner of hte window the message "now saving temporary file appears" before the error is thrown.

Using vba I am able to instantiate outlook, and create a mailitem, attach a workbook and send like that.

I have tried using the Add/Remove programs to repair Microsoft office.

I have trawled the forums without any answers.

Anyone had a similar issue? Any ideas would be appreciated.

Many Thanks
Ro
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Looks like a File System (Windows errors or locks) thing not an Excel nor Outlook thing I would check the HD for errors and Windows Event Viewer
Cheers
Sergio
 
Upvote 0
Thanks for your time Sergio. I will take your advice on board and focus my investigation. Much appreciated.

Ro
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,214
Members
453,024
Latest member
Wingit77

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