Hello,
I would like to clear the value in every cell in the row, when column B = "R"
please help
Hello,
I would like to clear the value in every cell in the row, when column B = "R"
please help
try this:
If you meant to clear the row of data and not delete the row, then change delete to clear in the code and the row will remain, however empty of data.![]()
Please Login or Register to view this content.
Last edited by alansidman; 12-15-2013 at 10:59 PM.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
One way:
![]()
Please Login or Register to view this content.
Last edited by berlan; 12-15-2013 at 11:01 PM. Reason: update
Another:
![]()
Please Login or Register to view this content.
Hi guys thank for your great replies,
will this clear (not delete) the data in other columns or just B?
the data range I wish to clear is D:BC, based on the value in B
If you look at the code I provided, it deletes the entire row. Replace the word delete with clear and it will clear the entire row. The other codes provided clear the contents of the cells. Have you tested any of the solutions?
Wow! that was quick, thanks Alansidman, I don't want to delete the data in rows A:C or (BD onwards)
Or shoud I say clear? No deleting please![]()
If you want to Clear only D:BC.. try this one too..
Please backup a copy before try..
![]()
Please Login or Register to view this content.
Regards!
=DEC2HEX(3563)
If you like someone's answer, click the star to give them a reputation point for that answer...
This should do that for you
![]()
Please Login or Register to view this content.
I will do, made that mistake before
its falling over because I have merged cells, maybe a more specific range might help? the range is D7:BC300.
I am also using groups (Hidden) will this be able to clear them too?![]()
VBA does not play well with merged cells. If you want to use VBA, you will need to avoid the use of merged cells.
Merged cells don't seem to play with any of the other kids.
I don't think I'll be able to avoid it though, but there are no merged cells in the D7:BC300 range.
Can we have a better view.. please upload sample file..
Hi Debraj Roy,
Sorry I am unable to upload files from my workplace.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks