The application i'm trying to sendkeys to is only allowing standard text/numbers. Special characters such as (TAB, ALT, F7, etc) are not registering. Looking for another VBA alternative to try? All the program is doing is switching to the application, which works fine. And entering 2 [TAB]s and the number 1, and looping X amount of times.
Thanks in advance.
VBA Code:
Sub CycleCount()
Dim cycles As Integer
Dim counter As Integer
counter = 0
cycles = InputBox("How many line items to count?")
If cycles = 0 Then Exit Sub
AppActivate "e21prd"
SendKeys "1", True
For counter = 1 To cycles
SendKeys "{TAB 2}1", True
Next counter
MsgBox "Complete"
End Sub
Thanks in advance.