Difference between revisions of "Checking segment character count Wordfast Classic"
(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...") |
(No difference)
|
Latest revision as of 02:20, 2 October 2017
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