View Single Post
 
Old 02-11-2021, 12:38 AM
mbcohn mbcohn is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Jan 2021
Posts: 32
mbcohn is on a distinguished road
Default

Well, this time it ran for a lot longer. Then it stopped at a run-time error 9105: String is longer than 255 characters. It was on this line.
Code:
 Set wdDoc = Documents.Open(FileName:=strFldr & "\" & strFile, AddToRecentFiles:=False, ReadOnly:=False, Visible:=True)

Well, the folders I'm working with are already nested within a series of other folders, so I suppose the file names, when they include the path, can get rather long.
Reply With Quote