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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,224,724
Messages
6,180,569
Members
452,988
Latest member
wcself81

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