Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have written a VBA procedure to import a text file, format it. Now I need
to add the capability to check for a value in column A. When I find that value, I then want to delete that row and all other rows below that row, all from within the VBA procedure. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Turn on the macro recorder and then do Edit=Find and search for your target
value. then turn off the macro recorder and look at the recorded code. Then add the line Range(activeCell,"A65536").entireRow.Delete -- Regards, Tom Ogilvy "DDK" wrote: I have written a VBA procedure to import a text file, format it. Now I need to add the capability to check for a value in column A. When I find that value, I then want to delete that row and all other rows below that row, all from within the VBA procedure. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and delete all other rows | Excel Discussion (Misc queries) | |||
Find Column heading and then Delete entire column | Excel Programming | |||
Find & Delete Rows | Excel Programming | |||
find and delete rows | Excel Programming | |||
macro to find something in column A and delete 5 rows below it | Excel Programming |