Checking segment character count Wordfast Classic
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