Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Move scrollbar to top in multiline textbox in VBA

$
0
0
Hi I'm using VBA in MS Word and have a form with a multiline textbox with its vertical scroll bar enabled (and word wrap, if that matters). When I place more than a few lines of text into the box of course it scrolls down to the end of the text. What I want to do is then scroll back up so the user will see the beginning of the text in the textbox, not the end of the text. According to a quick Google search it appears there are some newer methods (e.g. textbox.curline) that allow for this in .NET, but they do not seem to be supported in VBA. Any help would be greatly appreciated!

Viewing all articles
Browse latest Browse all 12583

Trending Articles