How we can change enters from the table into tag?

Is it possible to change paragraph Enters in the table into "some tag (i.e. <br/>) using vba macro.

But this should be happen only in the table not in outside of the document.

Please refer attached word document.
Amzad MohammadJava DeveloperAsked:
Who is Participating?
 
Rgonzo1971Connect With a Mentor Commented:
Hi,

pls try
Sub Macro()
For Each tbl In ActiveDocument.Tables
    Set rng = tbl.Range
    With rng.Find
        .ClearFormatting
        .Replacement.ClearFormatting
        .Text = "^p"
        .Replacement.Text = "<br/>"
        .Execute Replace:=wdReplaceAll
    End With
Next
End Sub

Open in new window

Regards
0
 
Rgonzo1971Commented:
No Attachement
0
 
Amzad MohammadJava DeveloperAuthor Commented:
Thank you Rgonzo1971.
0
 
Amzad MohammadJava DeveloperAuthor Commented:
It' done.

Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.