vba - if setfocus or if activecontrol -
i need help. whatis correct way?
if not session.findbyid("wnd[0]/usr/tabstabspr1/tabpsp20/ssubtabfra1:saplmgmm:2000/subsub2:saplmgd1:2701/txtmard-lgpbe").activecontrol 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 cells(x, 5) = "" end if
the syntax correct?
thanks
you might search how determine activecontrol is, check see if matches control of concern. try this:
getting activecontrol name , value multipages form
another concern looks you're using sap excel add-in. code result of recording interaction control?
Comments
Post a Comment