Since the bookmark names need to begin with a letter, you could change:
StrFld = BkMk.Name & "\"
to:
StrFld = Right(BkMk.Name, Len(BkMk.Name) - 1) & "\"
You might also need to change:
.SaveAs2
to:
.SaveAs
and change:
If Dir(StrPth & StrFld, vbDirectory) = "" Then MkDir (StrPth & StrFld)
to:
On Error Resume Next
MkDir (StrPth & StrFld)
On Error GoTo 0
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|