IUIAutomation not defined

peter2047

Board Regular
Joined
Dec 31, 2005
Messages
70
Hi All,

I am using Excel 2007. The following statement in Excel VBA is giving "User-defined type not defined" error message.
Dim AutomationObj As IUIAutomation

Does it mean that 2007 version do not support IUIAutomation ?

Thanks in advance.

PS. Windows 7 64-bit OS.
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi All,

I am using Excel 2007. The following statement in Excel VBA is giving "User-defined type not defined" error message.
Dim AutomationObj As IUIAutomation

Does it mean that 2007 version do not support IUIAutomation ?

Thanks in advance.

PS. Windows 7 64-bit OS.

That error suggests that your VBProject doesn't have a reference set to the UIAutopmationCore dll . Look under VBE/Tools /References.
 
Upvote 0
Thanks Jaafar.
The closest that I can see in the Tools-Reference is OLE Automation which is already selected.
I am looking for a way to click on "Save" in the Internet Explorer popup window.
If you have any link to an example is much appreciated.
Thanks.
 
Upvote 0
Thanks Jaafar.
The closest that I can see in the Tools-Reference is OLE Automation which is already selected.
I am looking for a way to click on "Save" in the Internet Explorer popup window.
If you have any link to an example is much appreciated.
Thanks.

In the VBE, click on Tools/References and scrolldown till you find the entry that reads : UIAutomationClient , tick it and press OK.

If it is not on the list, click the browse button and goto the Windows\System32\ folder and choose the file UIAutomationCore.dll

As for clicking on "Save" in IE, I don't know the specifities of the page/button you want to click on.

Do a search on this forum and on other sites as this type question is asked frequently.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top