Find & ReplaceAll in a folder then Save as to different file name

  • Thread starter Janet A. Thompson
  • Start date
J

Janet A. Thompson

I have the code for a Find & ReplaceAll for ll of the dos in a folder. I
want for it to open the header in the documents and remove the SP01, close
and save the file and save as to the same file name but without the BP#1 that
was in the file name.

How to modify the code to do this?
 
D

Doug Robbins - Word MVP on news.microsoft.com

Incorporate the following (as appropriate) into your code:

ActiveDocument.SaveAs Replace(ActiveDocument.Name, "BP#1", "")


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
Top