![]() |
#1
|
|||
|
|||
![]()
Hi all,
I'm trying to clear the cell to the right (column I, range 6-81) when the cell to the left (column H, range is 6-81) changes value. Code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("H$6")) Is Nothing Then Range("I$6").ClearContents End If End Sub I tried using a colon I$6:I$81 and H$6:H$81 but that cleared the whole column (and I only want to clear the cell directly to the right upon a changed value to the cell directly to the left; i.e., same row). I thought I was using the dollar sign correctly but perhaps not? |
|
![]() |
||||
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 |
![]() |
FUGMAN | Excel Programming | 7 | 02-05-2017 08:37 AM |
![]() |
rick10r | Excel | 1 | 07-05-2016 12:07 PM |
![]() |
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 |