vba - Visual Basic - Selection start / end position -


im stuck on problem visual basic. need start , end of selection, in example on image should 12/19. couldnt find on internet.. guess im stupid... hope can me

window

not clear question, looks textbox control on userform. if that's case, can start , end of current selection using selstart , sellength properties:

 dim p1 long  p1 = textbox1.selstart   dim p2 long  p2 = p1 + textbox1.sellength 

Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -

javascript - How to change image src on success AJAX -