Hi guys,
Would it be possible the below script to be enriched with ReplaceAll function execution? The blue text is VBScript - I hope it can be translated and the whole thing can be done via Kix only?
Thank you!
Break ON $strSrcFile = "C:\test\test-UDF-8.txt" $strDstFile = "C:\test\test-ANSI.txt" $objWord = CreateObject("Word.Application") $RC = $objWord.Documents.Open($strSrcFile) With Selection.Find .Text = "~" .Replacement.Text = "," .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll $RC = $objWord.ActiveDocument.SaveAs($strDstFile,2) $objWord.Application.Quit
Edited by green78 (2010-12-22 09:04 PM)
|