1

Well basically I just wanted to know wether or not it was possible to add an older object library to excel 2013 and if so, How can I go about adding it? Im looking for object library 12.0

Thank you in advance.

4

1 回答 1

2

The solution is something called "late binding." You should create your objects in the following format:

Dim olApp As Object
Set olApp = CreateObject("Outlook.Application")

Rather than:

Dim olApp as Outlook.Application

Sources:

http://support.microsoft.com/?kbid=244167 http://support.microsoft.com/kb/245115 http://excel.tips.net/T003340_Automatically_Changing_References_to_VBA_Libraries.html http://www.mrexcel.com/forum/excel-questions/723006-using-outlook-object-library-excel-visual-basic-applications-supporting-older-versions.html

于 2014-09-08T01:31:21.953 回答