![]() |
|
|
Thread Tools | Display Modes |
#10
|
||||
|
||||
![]()
Obviously you need to select something before you can use selection, but with ranges you don't need to select them, which is one of their main advantages. In the case of the code. The range is already referred to the document
Code:
With wdDoc With .Range.Find
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
Tags |
vba word search |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA Word - Search Within Files Containing A String - Copy Files to New Folder | jc491 | Word VBA | 0 | 01-09-2016 12:00 PM |
![]() |
sbktex | Word VBA | 2 | 09-17-2014 04:09 PM |
![]() |
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
![]() |
VBNation | Word VBA | 2 | 02-08-2013 07:14 AM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |