I don't get the a runtime error 424 "object required". Perhaps you made an error in copying the code.
To skip the folder browser, replace:
Dim StrFolder As String
with:
Const StrFolder As String = "C:\Test"
and delete:
' Browse for the starting folder
StrFolder = GetTopFolder
If StrFolder = "" Then Exit Sub
You can also delete the GetTopFolder function.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|