OMGSALESFORCE2
New Member
- Joined
- Feb 24, 2021
- Messages
- 24
- Office Version
- 365
- 2019
- 2016
Is there a way to left click the mouse in VBA without using the user32.dll?
I was trying to use MouseKeys --- enabled by pressing Control Panel - searching Ease of Access at the top right - clicking Ease of Access Center - clicking Make the mouse easier to use - checking Turn on Mouse Keys.
Then when you press \ and 5 at the same time, you can left click using Mouse Keys.
I tried to use send keys with VBA and \5 to simulate a left click, but my VBA just sends the characters \5 to the browser searchbar instead of left clicking.
I was trying to use MouseKeys --- enabled by pressing Control Panel - searching Ease of Access at the top right - clicking Ease of Access Center - clicking Make the mouse easier to use - checking Turn on Mouse Keys.
Then when you press \ and 5 at the same time, you can left click using Mouse Keys.
I tried to use send keys with VBA and \5 to simulate a left click, but my VBA just sends the characters \5 to the browser searchbar instead of left clicking.