Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel VBA to Word Unselect a Selected text

Tags:

ms-word

excel

I'm writing an Excel VBA code that transfers data to a Word document. I'm using the command Application.Selection.Find and Application.Selection.InsertAfter in order to fill in the blanks in the Word document.

The problem is that after I select one item I can't select another one.

I would like to be able to unselect an item so that I could freely select another using the same command. How?

like image 326
user3903489 Avatar asked Aug 25 '14 10:08

user3903489


1 Answers

Can use Application.Selection.EndOf.

like image 115
Jean-François Corbett Avatar answered Oct 04 '22 16:10

Jean-François Corbett