SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Microsoft Office

Macro to delete paragraph

(2 posts)
  • Started 2 years ago by tamer7981
  • Latest reply from Enthusiast
  • Topic Viewed 598 times

tamer7981
Posts: 1

Hello;
I have a document contains Arabic and English texts. I am looking for a macro to delete the English text.

Thanks in advance.

Regards,

Tamer

Posted 2 years ago
Top
 
Enthusiast
Posts: 566

This macro will delete the current paragraph. Place the cursor in the paragraph somewhere and invoke the macro:

Sub DelParagraph()
'
' DelParagraph Macro
'
'
Selection.MoveUp Unit:=wdParagraph, Count:=1
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
End Sub

Posted 2 years ago
Top
 



Topic Closed

This topic has been closed to new replies.