Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I was wondering if anyone could help me with a simple Macro code for Excel 97 for deleting rows. After I do I VLOOKUP, I would like a MACRO to automatically delete all rows that come back as "#N/A". Does anyone have any suggestions? Thanks ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Assume your formulas are in column C Dim rng as Range On Error Resume Next set rng = Columns(3).SpecialCells(xlFormulas,xlErrors) On Error goto 0 if not rng is nothing then rng.Entirerow.Delete End if -- Regards, Tom Ogilvy "STEVEB" wrote in message ... Hi All, I was wondering if anyone could help me with a simple Macro code for Excel 97 for deleting rows. After I do I VLOOKUP, I would like a MACRO to automatically delete all rows that come back as "#N/A". Does anyone have any suggestions? Thanks ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom,
Thanks for everything! The formula worked great, I appreciate your help. Steve ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hpw do I delete multiple empty rows found between filled rows? | Excel Worksheet Functions | |||
How to Delete empty rows in excel in b/w rows with values | Excel Worksheet Functions | |||
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows | Excel Worksheet Functions | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions | |||
delete empty rows between rows with text | Excel Discussion (Misc queries) |