Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Conditional/selective deleting

Dim rng as Range, cell as Range
set rng = Range(Range("C1"),Cells(rows.count,3).End(xlup))
for each cell in rng
if application.CountA(cell.Resize(1,18)) = 0 then
cells(cell.row,1).Resize(1,2).ClearContents
End if
Next

May do what you want.

--
Regards,
Tom Ogilvy




"Martyn" wrote in message
...
How would i go about deleting any data in rows A:* AND B:*
IF C*:U* are empty?
Many thanks



Reply
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
Selective on Name stew Excel Discussion (Misc queries) 5 September 14th 08 07:53 PM
deleting rows conditional... help!!! laandmc Excel Discussion (Misc queries) 1 September 9th 08 03:36 PM
Selective calculation PH NEWS Excel Worksheet Functions 2 September 21st 06 01:33 PM
Deleting a conditional format Mark Strohmeyer Excel Discussion (Misc queries) 2 December 20th 04 11:39 PM
deleting a conditional format [email protected] Excel Discussion (Misc queries) 4 December 7th 04 10:45 PM


All times are GMT +1. The time now is 06:53 PM.

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

About Us

"It's about Microsoft Excel"