Run-time error '-2147319779 (8002801d)':

blakec4

New Member
Joined
Mar 8, 2012
Messages
9
I have all of a sudden getting the error:
Run-time error '-2147319779 (8002801d)':
Method 'MailEnvelope' of object'_Worksheet' failed​

when I run the following code:
Code:
Range("A1:E100").Select

ActiveWorkbook.EnvelopeVisible = True         ' Show the envelope on the ActiveWorkbook.     

[B][COLOR=#b22222]With ActiveSheet.MailEnvelope[/COLOR][/B]                      <--------    Errors on this line
         .Introduction = [t_BodyText]
         .Item.To = [t_SendTo]
         .Item.CC = [t_SendCC]
         .Item.Subject = [t_SubjectLine]
         .Item.Send
End With

In my research, I get the "DLL file not registered" but never get an indication which DLL file is not registered.

This problem occurred when enterprise upgraded "Lync" to "Skype for Business".

I got as far as "You will need to reinstall your office components" (I did but with not resolution) to rebuild your windows (Will not do that...)

I did find one other person that had the same issue but could not get a response as to their resolution.

Any help would be appreciated.
Steve
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Yes. I like where you are going. I have enabled the following:
  • Visual Basic for Applications
  • Microsoft Excel 14.0 Object Library
  • OLE Automation
  • Microsoft Office 14.0 Object Library
  • Microsoft Visual Studio Project Model (9.0)
  • Microsoft XML, v6.0
  • Microsoft SQL Server PowerPivot for Microsoft Excel

Thanks,
Steve
 
Last edited:
Upvote 0
Nice find but two of the links were dead and suspect my solution could be there. Bottom line, I am still unsuccessful. Thanks for the lead.
Bottom line, I did the repair AND reinstall to no avail. I also saved before evoking the macro with no luck.

Appreciate the great lead and this will help others.
 
Upvote 0
Steve,
Hope you're not still banging your head on this one. I just ran in to the same scenario. User's on Office 2013 and Enterprise pushed out SFB 2016. Had the same VBA code creating emails from an Excel spreadsheet.
Digging around, seems like SFB doesn't expect to be the sole 2016 app loaded and adds some keys so the 2013 apps can no longer find each other. Greatly simplifying with that explanation but the solution that worked for me was listed under a Word mail merge problem. Remove HKEY_CLASSES_ROOT\TypeLib\{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.8.
I like Microsoft's first workaround "[FONT=&quot]Upgrade all Office applications to Office 2016 for the best user experience." [/FONT]:LOL:[FONT=&quot]
[/FONT]
https://support.microsoft.com/en-us/help/3178867/word-mail-merge-doesn-t-work-after-you-install-skype-for-business-basi
David
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,021
Members
449,060
Latest member
LinusJE

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