I need help. What is the correct way? Is the syntax correct?
If Not session.findById("wnd[0]/usr/tabsTABSPR1/tabpSP20/ssubTABFRA1:SAPLMGMM:2000/subSUB2:SAPLMGD1:2701/txtMARD-LGPBE").ActiveControl Then
Cells(x, 5) = ""
End If
or
If Not session.findById("wnd[0]/usr/tabsTABSPR1/tabpSP20/ssubTABFRA1:SAPLMGMM:2000/subSUB2:SAPLMGD1:2701/txtMARD-LGPBE").SetFocus=true Then
Cells(x, 5) = ""
End If
Thanks