Choose the Measure tool ;
double-click the barline handle of the measure you want to end with a
final barline. The Measure Attributes dialog box appears.
Click the Final barline icon. Click OK.
To turn off the automatic final barline at the end of the document