Sawyer Posted April 10, 2008 Posted April 10, 2008 Hi, can someone please help me?I know the answer must be quite trivial to my question, but I just can't find it anywhere.I'd like to use AutoItX in a VBA script (Excel). I have registered AutoItX3.dll for COM and referenced it to the worksheet. Also I can see all the AutoItX methods and properties in the object browser. Still when I run the code below I receive a VBA EM saying: "ActiveX component can't create object" (EM Nr 429)What should I do to make it work?Thank you very muchSawyerOption ExplicitDim AutoItX As AutoItX3Lib.AutoItX3Public Function GetAutoItX() As Boolean GetAutoItX = False If TypeName(AutoItX) <> "AutoItX3" Then Set AutoItX = CreateObject(Class:="AutoItX3Lib.AutoItX3") End If If TypeName(AutoItX) = "AutoItX3" Then GetAutoItX = True End IfEnd Function
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now