LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Delete Rows containing pop-up entry

Thanks much Ron..........unfortunately I have to work with Excel97 here.
But, I've downloaded your Add-in and will put it to good use at home.

Thanks again,
Vaya con Dios,
Chuck, CABGx3



"Ron de Bruin" wrote:

For a Add-in solution see
http://www.rondebruin.nl/easyfilter.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl



"CLR" wrote in message
...
Thanks ever so much Guys....Paul B, Jason, and JE.......all three worked
fine-fine-superfine. I think I will go with Jason's tho, because it seems
to
work with either numbers or case-senitive text.

Thanks again for the rapid and working responses......any one of which
would
have served me, but it's always nice having a choice.

Vaya con Dios,
Chuck, CABGx3


"CLR" wrote:

Hi All......

I got this from a search of this group, and it works fine.

Hi Lawlerd, this code was posted by Frank Kabel, it should do what you
you need, it will delete every row with the word 'total' in column A...

Sub delete_rows()
Dim RowNdx As Long
Dim LastRow As Long
LastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).row
For RowNdx = LastRow To 1 Step -1
If Cells(RowNdx, "A").Value = "total" Then
Rows(RowNdx).Delete
End If
Next RowNdx
End Sub

My question is, can it be modified to give me a pop-up requesting a value
to
search for and delete the rows containing it, instead of a hard-coded
"total"?

Many TIA's
Vaya con Dios,
Chuck, CABGx3





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Autocomplete entry - Delete - How? Joe727 New Users to Excel 7 December 13th 09 08:35 PM
How to delete an repeatitive entry from a worksheet Martha Excel Worksheet Functions 2 January 15th 08 06:57 PM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM
delete dublicate entry. shital Excel Programming 1 September 26th 03 04:55 AM


All times are GMT +1. The time now is 12:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"