Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2020, 05:05 AM
p45cal's Avatar
p45cal p45cal is offline Clear Cell directly to right when cell to left changes value Windows 10 Clear Cell directly to right when cell to left changes value Office 2019
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Set rng = Intersect(Target, Range("H6:H81"))
If Not rng Is Nothing Then
  For Each cll In rng.Cells
    cll.Offset(, 1).ClearContents
  Next cll
End If
End Sub

Reply With Quote
  #2  
Old 08-04-2020, 06:02 AM
PrincessApril PrincessApril is offline Clear Cell directly to right when cell to left changes value Windows 10 Clear Cell directly to right when cell to left changes value Office 2019
Competent Performer
Clear Cell directly to right when cell to left changes value
 
Join Date: Nov 2019
Posts: 102
PrincessApril is on a distinguished road
Default

Must be something about my sheet. Still no clear in I upon value change in H:

Before Change: Screenshot by Lightshot
After Change (I is Same): Screenshot by Lightshot
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Retaining the left side space in table cell kumarjeyabalan Word Tables 2 08-17-2019 03:14 AM
Clear Cell directly to right when cell to left changes value Clear all cell colors within a range starting at cell A8 and change row of active cell to yellow FUGMAN Excel Programming 7 02-05-2017 08:37 AM
Clear Cell directly to right when cell to left changes value If value of cell A Matches a value in a Range of cells (column) then add value of cell A to cell C rick10r Excel 1 07-05-2016 12:07 PM
Clear Cell directly to right when cell to left changes value Assign the value of a cell as a cell reference of another cell in Excel 2010 - How to? bharathkumarst Excel 7 10-13-2014 10:25 AM
How do I align image at ABSOLUTE top left of a table cell? shnoozin Outlook 0 07-22-2011 03:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft