Computing.Net > Forums > Windows 95/98 > Excel Macro to delete rows of text?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Macro to delete rows of text?

Reply to Message Icon

Name: frank oblong
Date: March 8, 2003 at 07:10:48 Pacific
OS: windows me
CPU/Ram: 128
Comment:

Hi,
I need to delete 1-2 rows of repetitive text which occurs on my spreadsheet at non regular intervals. I know how to delete to empty rows using an excel macro. But I need a macro to delete specific rows of text. This would greatly speed up my work.
Can anyone help me please.
Thanks and Bye




Sponsored Link
Ads by Google

Response Number 1
Name: Bryco
Date: March 8, 2003 at 07:28:37 Pacific
Reply:

What is the criteria for selecting the rows to delete?

Every third row or duplicate entries or rows that begin with the text that begins with the letter Z or what?

How do you decide which rows you want deleted?

Bryan


0

Response Number 2
Name: johnoh
Date: March 8, 2003 at 07:35:22 Pacific
Reply:

I don't use excel but could you not do this:

insert a column in column A, enter the number 1 in the first row of it (maybe excel calls this cell A1 ?), put a1+1 in the second row, copy that cell down to the bottom of the spreadsheet such that the last one reads a2000+1, then force all these cells to be fixed numbers? You now have a column of fixed numbers going from 1 through 2000 or whatever. This comes in handy later.

Then you sort the whole spreadhseet on the column containing the cells with the text you want to delete. This sort puts all such rows together in a bunch. Then you just mark them all and delete, as in "delete rows 800 through 1100".

Then you resort the spreadhseet on column A, the column with the numbers you created earlier. This reverts the spreadsheet row order back to where it started, having eliminated the rows you didn't want.

Then delete column A.


0

Response Number 3
Name: ShutMeUpOrDown
Date: March 8, 2003 at 11:30:35 Pacific
Reply:

You might try posting this in the office software forum.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Why is OPERA crashing? Mem Stick Compatibility



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Excel Macro to delete rows of text?

Are these files safe to delete? www.computing.net/answers/windows-95/are-these-files-safe-to-delete/142938.html

How to delete clip file ? www.computing.net/answers/windows-95/how-to-delete-clip-file-/35243.html

Morpheus...how to delete ALL of it www.computing.net/answers/windows-95/morpheushow-to-delete-all-of-it/102612.html