View Single Post
 
Old 03-02-2016, 02:13 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote