5 replies
by mark.hodgson
You first need to create a user-defined function in a module that will do the switching for you.
An example can be found at
http://www.freevbcode.com/ShowCode.Asp?ID=1004
Create a new module and paste the declaratins and code into it, then save the module.
Then create a macro named 'AutoExec' with a
single line that does a RunCode action with the parameter 'ToggleCapsLock (true)' (You can get to this by clicking the ellipsis, expanding Functions, selecting the user database then double-clicking ToggleCapsLock. be sure to amend the parameter of the funtion to True to turn on caps lock.
When you open the database, the Autoexec macro is run, calling the function and turning on caps lock.
BTW I claim no originality for the actual code, it is something I found at freevbcode.com by doing a Google search when I needed to do something similar in a VB project.
by karini4
by lcwilliams
by karini4
by karini4
This discussion is closed to new replies.
Trending Software posts
Sort by Trending