Hello:
I'm using VBA "SendKeys" syntax, within GP 2013 R2 (12.00.1920). I want to delineate the end users based on GP User Class and, therefore, their access to macros based on the class that each user is in.
Each class, by design of GP, has to use a different keystroke to activate the same macro (i.e. the same programming).
Regardless, for "Class A", F10 will be used. For "Class B", F11 will be used. Finally, for "Class C", F12 will be used.
So far, the following is my full syntax:
Private Sub Redisplay_BeforeUserChanged(KeepFocus As Boolean, CancelLogic As Boolean)
SendKeys "{F10}"
End Sub
I would change this to the following:
Private Sub Redisplay_BeforeUserChanged(KeepFocus As Boolean, CancelLogic As Boolean)
SendKeys "{F10}"
SendKeys "{F11}"
SendKeys "{F12}"
End Sub
This won't work, though. This will simply "press" all three keys when the user's macro runs.
Could someone please share with me the correct syntax?
Thanks!
John
*This post is locked for comments