Hello,
I have a VBA code, which was working all the time and it stopped a few days ago. I'm not an expert in VBA and SAP, so maybe some of you could help me.
That is part of the code which is not working:
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").Text = "sp01"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/tbar[1]/btn[8]").press
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").currentCellRow = 5
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").currentCellColumn = "RQCOMPIC"
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").clickCurrentCell
'session.findById("wnd[0]/usr/lbl[14,8]").SetFocus
'session.findById("wnd[0]/usr/lbl[14,8]").caretPosition = 0
session.findById("wnd[0]").sendVKey 2
First four lines generate some spool requests, the fifth and the sixth are looking for specific row and column and the seventh one is clicking on them. While debuging, the highlighted line is the fifth one. By now, I am setting breakpoint before this and doing all the stuff by myself, but I'd like to automize it as it was before The one and two before last lines were always "commented"
Thank you for your help and sorry for my bad English.
I have a VBA code, which was working all the time and it stopped a few days ago. I'm not an expert in VBA and SAP, so maybe some of you could help me.
That is part of the code which is not working:
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").Text = "sp01"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/tbar[1]/btn[8]").press
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").currentCellRow = 5
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").currentCellColumn = "RQCOMPIC"
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").clickCurrentCell
'session.findById("wnd[0]/usr/lbl[14,8]").SetFocus
'session.findById("wnd[0]/usr/lbl[14,8]").caretPosition = 0
session.findById("wnd[0]").sendVKey 2
First four lines generate some spool requests, the fifth and the sixth are looking for specific row and column and the seventh one is clicking on them. While debuging, the highlighted line is the fifth one. By now, I am setting breakpoint before this and doing all the stuff by myself, but I'd like to automize it as it was before The one and two before last lines were always "commented"
Thank you for your help and sorry for my bad English.