Skip to content

Instantly share code, notes, and snippets.

View mgsandoval's full-sized avatar
🤓
Learning

Marlon G. Sandoval mgsandoval

🤓
Learning
View GitHub Profile
If Session.ActiveWindow.Text = "Error" Then Err.Raise 99 ' error detected?
'
' find the collection object that contains the Message from the bottom of the SAP screen and write the message to Excel
Info (17) ' puts the Message in the 17th column on the Excel Spreadsheet - column "Q"
'
If Session.ActiveWindow.Name = "wnd[1]" And Session.ActiveWindow.Text = "Log Off" Then
Session.findById("wnd[1]/usr/btnSPOP-OPTION2").press
Sheets("SAP_DATA").Cells(lDataRow, 16) = "error"
End If
'-------------------------------------------------------