UIAutomation, function or sub not definded

Sirtet

New Member
Joined
Apr 6, 2021
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
In Access 2016, I try to follow this howto on ui automation:

But I keep getting that "undefined" error on the function WalkEnabledElements.
It is the first function call after DIM ... as...
Where I get a different error if I do not set the dll reference, so that's not the problem...

Any ideas what causes the error?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi, can you post your code and also the complete error. I'm not sure what you mean by "that" undefined error. Is the function undefined or is something else undefined when the function is called? Note that I can't watch youtube videos at work ... what are you trying to learn from this video because the title is not entirely clear either (UI Automation could mean a lot of things depending on what type of UI you are trying to automate).
 
Upvote 0
Thanks...
Sorry yes, not very clear there. I was referencing my post-title "function or sub not definded".
I actually get it in german:
1618836715881.png

The Help-Button tells me it's error 35:
 
Upvote 0
The problem was, WalkEnabledElements is a user-defined function which i had thought to be part of the DLL...
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,222
Members
453,024
Latest member
Wingit77

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