Checking segment character count Wordfast Classic

From Wordfast Wiki
Revision as of 02:20, 2 October 2017 by Samar (talk | contribs) (Created page with "Here is a typical QA macro using the interactive mode just described above. It checks the target segment to make sure it's not longer than 80 characters (spaces included). If...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Here is a typical QA macro using the interactive mode just described above. It checks the target segment to make sure it's not longer than 80 characters (spaces included). If it is, it warns the user and sends him/her back to the segment:


Sub CheckLength()

If Not ActiveDocument.Bookmarks.Exists("WfTarget") Then Exit Sub

If Len(ActiveDocument.Bookmarks("WfTarget").Range.Text) > 80 Then

If MsgBox("Target > 80 signs! Stop and edit?", vbYesNo, "Wordfast") = vbYes Then

Selection.Bookmarks.Add "WfStop"

End If

End If

End Sub

 Back to Wordfast Classic User Manual