Link to home
Start Free TrialLog in
Avatar of JohnRobinAllen
JohnRobinAllenFlag for Canada

asked on

Word VBA: Where is the insertion point in a Textbox?

I have a textbox and need to know the current location of the insertion point in the text so that I can check the character to the immediate left of the insertion point. I will be getting this information inside a KeyPress Sub. If possible, I would like to know the location as the number of characters between the current location and the start of the text.
Thanks for any help.
JRA
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JohnRobinAllen

ASKER

The answer came so quickly that I have not had a chance to test it. However, since it comes from Graham Skan, I know that the solution will be correct.
    Many thanks
    JRA