Word VBA select range of text

  • Hi guys,


    I'm currently writing a word VBA and I have ran into problems.


    My macro is supposed to search for the word "Forms" and select all the text until it reaches the word "Mixing".


    Attached is a image and my source code, I'm new to VBA and would appreciate it if someone could help me.


    Thanks :) :thanx:


    [Blocked Image: http://img217.exs.cx/img217/7776/untitled5vh.jpg]


  • Re: Word VBA select range of text


    Do you require 2 clicks?


    Something like this:



    I recorded that. Extend is the EXT button at the bottom of Word's application window...it extends the selection. I also removed a bunch of recorded lines that had =false at the end.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!