jayasreer
08-26-2013, 10:06 PM
Hi,
I want to Apply para tag for the selected lines in command button, but its not working. Let me know if any additional codes need to add.
[Private Sub CommandButton1_Click()
With Selection
Selection.InsertBefore "<para>"
Selection.MoveRight wdCharacter, -1, wdExtend
Selection.InsertAfter "</para>"
End With
Selection.EndKey
Call Module1.QA
End Sub
code formatting and tags added by SamT
I want to Apply para tag for the selected lines in command button, but its not working. Let me know if any additional codes need to add.
[Private Sub CommandButton1_Click()
With Selection
Selection.InsertBefore "<para>"
Selection.MoveRight wdCharacter, -1, wdExtend
Selection.InsertAfter "</para>"
End With
Selection.EndKey
Call Module1.QA
End Sub
code formatting and tags added by SamT