Clear cell contents based on value of another cell range using VBA
Solved/Closed
Tbonekiller
Posts
17
Registration date
Wednesday August 21, 2019
Status
Member
Last seen
June 6, 2024
-
Jan 6, 2021 at 02:35 PM
Tbonekiller Posts 17 Registration date Wednesday August 21, 2019 Status Member Last seen June 6, 2024 - Jan 12, 2021 at 01:06 PM
Tbonekiller Posts 17 Registration date Wednesday August 21, 2019 Status Member Last seen June 6, 2024 - Jan 12, 2021 at 01:06 PM
Related:
- Based on the values in cells b77 b81 c77
- What function can automatically return the value in cell c77 - Best answers
- Based on the values in cells b77:b81 which function can automatically return the value in cell c77 - Best answers
- Help me to add particular cells ✓ - Excel Forum
- Based on the values in cells b77 b81 ✓ - Excel Forum
- Excel function question - Excel Forum
- Return Seq Values Until Blank value then return different set of seq values ✓ - Excel Forum
- Code to move rows into another sheet based on certain values ✓ - Excel Forum
4 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jan 12, 2021 at 11:59 AM
Jan 12, 2021 at 11:59 AM
Hi Tbonekiller,
Again that's an issue I'm not having, same with the brackets around the sheet names. I guess we have different VBA settings that I'm not aware of.
We can let Excel know to look at the whole cell. To do that, change:
into:
Does that solve it for you?
Now you know the power of VBA, it's quite the time saver.
Best regards,
Trowa
Again that's an issue I'm not having, same with the brackets around the sheet names. I guess we have different VBA settings that I'm not aware of.
We can let Excel know to look at the whole cell. To do that, change:
Set mFind = Range("K8:K38").Find(cell.Value)
into:
Set mFind = Range("K8:K38").Find(cell.Value, lookat:=xlWhole)
Does that solve it for you?
Now you know the power of VBA, it's quite the time saver.
Best regards,
Trowa
Jan 12, 2021 at 01:06 PM
PERFECT!!!!!! Thank you so much. This really helped me a lot.