Help with VBA Email Selection from Excel 2010 using Outlook 2010 - Error 430 - Automation not supported

peejaygee

New Member
Joined
Jul 23, 2006
Messages
40
Hey Guys,

I have an excel spreadsheet setup, it copies data from another sheet, sets everything up, highlights a section of an active sheet and then it is supposed to email a list of people the data.

It was working for the past week or two, all of a sudden it has stopped, I don't know if Windows has done an update, or Office has done an update, or the fact of installing Lync 2010 is causing the problem (which I've since uninstalled). I am using Outlook 2010, and I'm using Excel 2010 and when I run it, mail envelope lines appear, ready for the To: CC: and Subject (which just currently fills with the spreadsheet name before it error's out)

Using the code of

ActiveSheet.Range("J35:K44").Select


ActiveWorkbook.EnvelopeVisible = True

With ActiveSheet.MailEnvelope <----------------'This part here errors out.

.Item.To = "email@address.com"
.Item.Subject = "This is my Subject Line"
.Item.Send

End With

ActiveWorkbook.EnvelopeVisible = False

ActiveSheet.Range("J35:K44").Select

Selection.Copy

But when I run the macro I get the error 'Run-time error '430':Class does not support Automation or does not support expected interface'

I have a funny feeling it is because an ADO is conflicting, but I don't know which one is causing the problem, I've tried all various ones in the 'References'. I was going to upload a screenshot of the list available to me, but I can't find any quick place online to store my picture temporarily.

Can anybody help me and/or point me in the right direction.
Regards
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I have just recently come across this same error. My scenario is the same and stumped. This code was working daily for months. Our enterprise upgraded to Skype for Business. I cannot uninstall that update. Is there a work-around?

Hey Guys,

I have an excel spreadsheet setup, it copies data from another sheet, sets everything up, highlights a section of an active sheet and then it is supposed to email a list of people the data.

It was working for the past week or two, all of a sudden it has stopped, I don't know if Windows has done an update, or Office has done an update, or the fact of installing Lync 2010 is causing the problem (which I've since uninstalled). I am using Outlook 2010, and I'm using Excel 2010 and when I run it, mail envelope lines appear, ready for the To: CC: and Subject (which just currently fills with the spreadsheet name before it error's out)

Using the code of

ActiveSheet.Range("J35:K44").Select


ActiveWorkbook.EnvelopeVisible = True

With ActiveSheet.MailEnvelope <----------------'This part here errors out.

.Item.To = "email@address.com"
.Item.Subject = "This is my Subject Line"
.Item.Send

End With

ActiveWorkbook.EnvelopeVisible = False

ActiveSheet.Range("J35:K44").Select

Selection.Copy

But when I run the macro I get the error 'Run-time error '430':Class does not support Automation or does not support expected interface'

I have a funny feeling it is because an ADO is conflicting, but I don't know which one is causing the problem, I've tried all various ones in the 'References'. I was going to upload a screenshot of the list available to me, but I can't find any quick place online to store my picture temporarily.

Can anybody help me and/or point me in the right direction.
Regards
 
Upvote 0

Forum statistics

Threads
1,225,155
Messages
6,183,217
Members
453,151
Latest member
Lizamaison

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