Tag: oft

运行时错误,同时打开一个经典模板

我有一个邮件工具来创buildOutlook模板。 模板在其中一个工作表中存储为OLEObjects。 要使用这些模板,我要在Temp文件夹中创build它们的一个副本。 之后,工具直接引用它,并用CreateItemFromTemplate打开。 这只适用于我的电脑。 我公司的其他人出现错误。 重新创buildOLE对象的代码: Sub RecreateObject(ObjectName As String, TemplateName As String) 'creates a copy of the template stored in config in the users temp folder so that we can reference it from hard drive Dim objShell As Object Dim objFolder As Variant Dim objFolderItem As Variant Dim oleObj As OLEObject Set objShell […]