Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-02-2013, 06:57 PM
Chayes Chayes is offline Deleting lines above selected text Windows XP Deleting lines above selected text Office 2003
Advanced Beginner
Deleting lines above selected text
 
Join Date: May 2012
Posts: 79
Chayes is on a distinguished road
Default Deleting lines above selected text

Hi All

I've been trying construct some VBA to help tidy up some text.

As an example , I have lots of blocks of text like this :

BACKSTREET BOYS
SHAPE OF MY HEART


NEW UK JIVE LONG DELETED ORIGINAL 2000
63321BX19


BACKSTREET BOYS
QUIT PLAYING GAMES
EX UK JIVE ISSUE
259807BX223

I'm trying to highlight all lines containg 'BX' , and then delete the line above each of them.

It should then look like this :

BACKSTREET BOYS
SHAPE OF MY HEART
63321BX19


BACKSTREET BOYS
QUIT PLAYING GAMES
259807BX223


Grrateful for any help



Last edited by Chayes; 11-02-2013 at 06:59 PM. Reason: typo
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
Deleting grid lines but keeping the axis lines CoffeeNut Excel 0 04-01-2013 01:50 PM
Importing selected lines from a txt file Pedgonc Excel 2 01-09-2013 12:44 PM
Deleting lines above selected text Deleting Lines Pulls Back Next Page SQLUSA Word 5 12-18-2012 03:53 PM
Deleting empty lines lostsoul62 Word 5 04-16-2012 04:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:22 AM.


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