Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-31-2010, 01:27 PM
Michael007 Michael007 is offline Delete text Windows 7 64bit Delete text Office 2003
Novice
Delete text
 
Join Date: Dec 2010
Posts: 18
Michael007 is on a distinguished road
Default Delete text

Hi everyone,

I am a beginner with VBA. I wonder if it is possible with a VBA to delete the text in a paragraph when a specific word is met. If yes, could you write a piece of VBA, pls.

For example, in the following text:
====
Wind southwest 10 to 20 knots becoming light early this evening.
Periods of drizzle and fog beginning this evening changing to a few


showers near noon Saturday.

Wind light. Periods of drizzle and fog patches beginning early this
evening changing to showers Saturday afternoon.
=====

I wish to delete the text from "Periods" to the end of the paragraph for both paragraph in order to get this result:
====
Wind southwest 10 to 20 knots becoming light early this evening.

Wind light.
=====

Of course, you guess that my real text is much longer than that!
Thanks
Michael
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Undo Delete jbelorit Outlook 0 11-22-2010 08:10 AM
delete email message via blackberry and have it delete on my pop3 and my outlook Iamthestorm Outlook 2 10-28-2010 12:21 AM
Highlighted text won't delete - when I press enter Gague Word 2 07-09-2010 12:53 PM
Some emails will not delete Shawn76 Outlook 0 07-01-2010 01:33 PM
Need to delete style and style text mclan Word 0 08-04-2008 12:05 PM

Other Forums: Access Forums

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


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