The How-To Geek Forums Have Migrated to Discourse


How-To Geek Forums / Microsoft Office

Macro to delete paragraph

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

PARTNER SPOTLIGHT

Recommended: Clean Your Mac the Easy Way with CleanMyMac 3

If you want to clean up your Mac the easy way, CleanMyMac is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyMac 3 for Free Today

Posted yesterday 
Top
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 3 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 3 years ago
Top
 



Topic Closed

This topic has been closed to new replies.