Thread
:
Function won't return value in merged cells
View Single Post
#
2
Posted to microsoft.public.excel.misc
Don Guillett
Posts: n/a
Function won't return value in merged cells
I don't use merged cells very often but try using all the merged cells such
as
range("L14:x14")
--
Don Guillett
SalesAid Software
"Dr. Mike" wrote in message
oups.com...
I have a need for when deleting the formula within a cell, another
cell's value will appear as default. Following is a formula that
serves, and works well in a single, unmerged cell. However, it--not
anything else I have tried--works in a group of merged cells. Does
anyone have a suggestion, and even better, an adaption to this formula?
Private Sub Worksheet_Change(ByVal TargetCell As Range)
If Not Intersect(TargetCell, Range("L14:L14")) Is Nothing Then
If TargetCell = "" Then
TargetCell = "=Sheet1!O14"
End If
End If
End Sub
Thanks,
Dr. M
Reply With Quote