A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Apparently there is another part of my code that doesn't know the new lingo
AppActivate Calls1
Do While FindWindow(vbNullString, Calls1) = 0
DoEvents
Loop
SendKeys "%r+%r", True
DoEvents
SendKeys "{tab 2}" + When, True
DoEvents
SendKeys "%w+{tab}", True
DoEvents
"AppActivate Calls1" does indeed activate the appropriate window of the Avaya application. But it apparently doesn't understand the "FindWindow(vbNullString, Calls1) = 0" statement. When I put the cursor on FindWindow and press F1 I get the message "Object library invalid or contains references to objexct definitions that could not be found." Tools/References in the VB window shows no obvious problems.
What I am trying to do is put the focus on another app window (Calls1), then send keystrokes to it. The problem is that the SendKeys statement is sending those commands to the VB window, not to the Calls1 application that was activated. Any ideas?
As I said previously, I am trying to make old code that worked in Excel 2003 do similar things now.