I have a problem with my code which seems to have cropped up over night. There are some peculiarities with this so I'll try to give as much detail as I can.
The file in question is an excel workbook which generates an xml file from data passed in. The file is opened, populated and saved via a macro, and this section runs fine.
The problem occurs when creating a GUID for the .xml, in this routine:
Function GenGUID() As String
Dim strGUID As String
Dim TypeLib As Object
Set TypeLib = CreateObject("Scriptlet.TypeLib")
strGUID = TypeLib.guid
'dump the curly brackets
strGUID = Replace(strGUID, "{", "")
strGUID = Replace(strGUID, "}", "")
strGUID = Left(strGUID, Len(strGUID) - 2)
GenGUID = strGUID
End Function
Specifically, the line:
Set TypeLib = CreateObject("Scriptlet.TypeLib")
This throws up a "Runtime error 70: Permission Denied".
Now, the peculiarities.
The stand out above is the updates issue. But, the machine the file ran fine on yesterday was the 'broken' machine not updated overnight, ruling this out.
We have tried everything we can think of, along with a lot of internet trawling for answers. All coming up with nothing.
Does anyone have any ideas?
Thanks in advance for any help.
The KB3213624 seems to be the Office 2010 Security Update. Below are the KBs for other versions of MS Office:
Microsoft Office 2013 Service Pack 1 (64-bit editions) 3213555
Microsoft Office 2013 Service Pack 1 (32-bit editions) 3213555
Microsoft Office 2007 Service Pack 3 3213640
Microsoft Office 2016 (32-bit edition) 3213545
Microsoft Office 2010 Service Pack 2 (32-bit editions) 3213624
Microsoft Office 2010 Service Pack 2 (64-bit editions) 3213624
Microsoft Office 2013 RT Service Pack 1 3213555
Microsoft Office 2016 (64-bit edition) 3213545
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With