I am copying this from SAP
.findById("wnd[2]/usr/lbl[5,2]").setFocus
.findById("wnd[2]/usr/lbl[5,2]").caretPosition = 2
I need paste this in active sheet
xclsht.Cells(1,1).Value = .findById("wnd[2]/usr/lbl[5,1]").text
xclsht.Cells(1,2).Value = .findByID("wnd[2]/usr/lbl[5,2]").text
I would like to paste in active sheet (sheet1) cell 1 and 2 respectively. But I am getting error. sheet name is SAP1.xlsx
Pls help, any help will be appreciate!!!
Bookmarks