View Single Post
 
Old 06-12-2017, 08:04 AM
elbartje elbartje is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2017
Posts: 4
elbartje is on a distinguished road
Default Loop true all opned word document

Hi all

I want to loop true all opened word documents but my code stays on the first selected file. It also only just loops 2 times even if I have more files opened.

Dim wd As Range

For Each wd In ActiveDocument.Words

wd.Select
MsgBox (wd.Document.Name)
'Do stuff

next wd
Reply With Quote