Hello,
I would like to ask you for help... I cannot figure out, how to cancel selection of all text in textbox, after I activate this textbox by TAB key. This textbox has some pre-inserted value depending on previous combobox, anyway I would like to start typing after this pre-selected text when I activate this textbox - put cursor on 5th position and dont have text highlighted inside this textbox.
I tried Enter event, when tried
,
and combinations of selstart, selLenght etc...nothing wokred...it is always all highlighted, when I enter this textbox using tab order and key TAB.
Thank you in advance,
brgds,
Tomas
I would like to ask you for help... I cannot figure out, how to cancel selection of all text in textbox, after I activate this textbox by TAB key. This textbox has some pre-inserted value depending on previous combobox, anyway I would like to start typing after this pre-selected text when I activate this textbox - put cursor on 5th position and dont have text highlighted inside this textbox.
I tried Enter event, when tried
VBA Code:
txt1.selstart = 5
VBA Code:
txt1.setfocus
Thank you in advance,
brgds,
Tomas