cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VBA Code - Automation

Former Member
0 Likes
1,655

Hi All,

How to insert an IF function into SAP VBA Code so that IF a pop up comes up "Data has been changed:", "Do you want to save the changes?" Yes, No or Cancel and I want to Press Yes and enter to continue but I can't seem to figure this out

 

TIA.

View Entire Topic
Former Member
0 Likes

Solved it with an extra few lines of code to auto save before it requests to save.

session.findById("wnd[0]/tbar[0]/btn[0]").press
session.findById("wnd[0]/tbar[0]/btn[11]").press
session.findById("wnd[0]").sendVKey 0