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

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -