Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 02-28-2018, 03:00 AM
eduzs eduzs is offline Delete the graph based on its character number Windows 10 Delete the graph based on its character number Office 2010 32bit
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

You can try a VBA macro code like that:

Code:
Sub x()

Dim MyPara As Paragraph

For Each MyPara In ActiveDocument.Paragraphs
    If MyPara.Range.Characters.Count <= 4 Then MyPara.Range.Delete
Next MyPara

End Sub
Backup your original files before do any modifications or test, test before use, use at your own.
__________________
Backup your original file before doing any modification.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete the graph based on its character number count a number of cells based on the beginning of a order number Kubi Excel 2 08-06-2017 08:54 PM
Delete the graph based on its character number Delete Character on Single Line Only Tye30 Word VBA 8 04-20-2017 08:40 PM
Delete the graph based on its character number Delete starting number *) and delete Unneeded data in series frustrated teacher Word VBA 5 12-07-2014 06:53 PM
first character NOT Alpha numeric or Tilde (~) delete. ksridh Word VBA 5 03-17-2014 12:45 AM
graph changes number when losing embedded link Alaska1 Excel 0 08-14-2013 11:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft