#1
|
|||
|
|||
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 |
|
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 |