This issue is related to security restrictions put in place by Microsoft since Windows Vista and is reproducible in versions up to Windows 10. The possible solutions are listed below:

Run The Raiser's Edge in compatible mode:
  1. Right click on The Raiser's Edge icon the on the desktop
  2. Select Property
  3. Click on the Compatibility Tab
  4. Mark the checkbox Run this program in compatibility mode for and choose Windows XP (Service Pack 3) from the drop-down window
  5. Mark the checkbox Run this program as an administrator (Privilege Level section)
  6. Click on Apply then OK

For Windows 7: Change the UAC settings to never notify.

For Windows 8 and 10:
Insert the following code directly after the declarations section of your code, which will redirect the VB Sendkeys command to the Windows Script Shell instead. 

Public Sub Sendkeys(text as variant, Optional wait As Boolean = False)
   Dim WshShell As Object
   Set WshShell = CreateObject("wscript.shell")
   WshShell.Sendkeys cstr(text), wait
   Set WshShell = Nothing
End Sub

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Microsoft Visual Basic and the tools used to create and debug procedures. Our Customer Support can help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality. If you are interested in learning more about the VBA and API modules, contact your account manager.