Hi, I'm trying to make a VBA script with which you can format one specific row/paragraph in a text box. I would like to be able to select the row by putting the cursor on the relevant line.
Using the below code, I am able to do that, except that it doesn't work if the cursor is on the beginning or the end of a line.
What's the best way of making this work also for the beginning or end of a line? Is there a way of referring to the row you're on, or can one extend the selection like in word?Please Login or Register to view this content.
Edit: I played around some more, I think my current version only formats the word I'm currently on, not the line. Help still needed.
Cheers
Bookmarks