I've needed to use ActiveX text boxes for some functionality that regular text boxes don't have, and I noticed with the ActiveX text boxes that when using functions like InStr() and Len() that the character locations don't match the locations that SelStart refers to. After some investigation, I found:
- For standard functions like InStr() and Len(), vbnewlines are counted as 2 characters long
- For regular text boxes, vbnewlines are counted as 2 characters long by SelStart and SelLength
- For activeX text boxes, vbnewlines are counted as 1 character long by SelStart and SelLength
Are there any settings for the activeX text box that can set vbNewLine to be counted as 2 characters by SelStart and SelLength so I don't have to do calculations in VBA to correctly calculate positions in long multiline documents?