I have this sheet that I need to search down column C, find a blank, then clear cells A thru E. This must be done until there is no more data in cell A.
TIA!
I have this sheet that I need to search down column C, find a blank, then clear cells A thru E. This must be done until there is no more data in cell A.
TIA!
Hi,Originally Posted by F6Hawk
a macro something likeshould do the trick.Please Login or Register to view this content.
hth
---
Si fractum non sit, noli id reficere.
Thanks Brian, this is close, I think. But can I change
Rows(iRow).EntireRow.Delete
to
Rows(iRow).Range(A-E).ClearContents
?
I don't want to delete the entire row, just clear cells A thru E to make it look cleaner.
Thanks a bunch!
Hawk
Try this macro
Please Login or Register to view this content.
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assisted or failed to assist you I welcome your Feedback.
Mudraker,
This did nothing for a bit, then all of a sudden, all values in the Range(A:E) were cleared (not just rows that had blank cells in C). The logic makes sense to me, but something is amiss.
Thanks for the idea though!
This seems to be working, I kind of used the logic of the two examples:
My question now is, can I somehow clear the contents on a range of cells, instead of doing 5 cells per row individually? I tried:Please Login or Register to view this content.
Range(iRow, 1, 5).ClearContents
But it did not work.
Last edited by F6Hawk; 02-28-2007 at 08:01 AM.
Hi,Originally Posted by F6Hawk
should helpPlease Login or Register to view this content.
(sorry about the Delete Row)
---
Bryan, you DA MAN!! Thank you, Sir, this does it nicely.
Thanks goes out to mudraker, as well, you guys are what make this forum so great!
good to see it worked for you. mudraker's idea is better, use the Find rather than loop through each row, but for simplicity I sometimes take the easy route.Originally Posted by F6Hawk
Thanks for your response.
---
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks