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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -