Sephaerius
New Member
- Joined
- May 30, 2013
- Messages
- 45
I'm using the GetBoiler function by Ron de Bruin to grab an Outlook signature for an email VBA function. This function has historically worked perfectly in 2013 x64, however I have recently been upgraded by my organization to 2016 x64, and the CreateObject() command now throws error 429 ActiveX component can't create object.
I've Googled all morning to try to figure out the fix or workaround, with no luck. The most I was able to find was someone who commented that "something changed" with objects between 2013 and 2016, but it wasn't specified what, or how to repair it.
So far I've checked my Trust Center settings, my Internet Security settings, I've run a Repair on Office 2016, I've run Regsvr32, and I've checked my References. I'm at my wits end on troubleshooting this - so if anyone has any suggestions to walk through please help!
I've Googled all morning to try to figure out the fix or workaround, with no luck. The most I was able to find was someone who commented that "something changed" with objects between 2013 and 2016, but it wasn't specified what, or how to repair it.
Code:
Function GetBoiler(ByVal sFile As String) As String
Dim fso As Object
Dim ts As Object
Set fso = CreateObject("Scripting.FileSystemObject") '<-- error on this line
Set ts = fso.GetFile(sFile).OpenAsTextStream(1, -2)
GetBoiler = ts.readall
ts.Close
End Function
So far I've checked my Trust Center settings, my Internet Security settings, I've run a Repair on Office 2016, I've run Regsvr32, and I've checked my References. I'm at my wits end on troubleshooting this - so if anyone has any suggestions to walk through please help!