N
Nick
hi everyone,
I have a problem where I have macro code where i want to
refer to a range name but excel won't recognise what i
want it to do unless i put the cell reference in there.
The code is listed below, cell I175 is range named "cash".
by simply subsituting "cash" for $I$175 does not work!
any ideas?
If Target.Address = ("$I$175") Then
If Range("cash").Value <> 1 Then
Range("debt_terms").Select
Selection.EntireRow.Hidden = False
Range("cash").Select
Else
If Range("cash").Value = 1 Then
Range("debt_terms").Select
Selection.EntireRow.Hidden = True
Range("cash").Select
End If
End If
End If
Thank you very much
Cheers
Nick
I have a problem where I have macro code where i want to
refer to a range name but excel won't recognise what i
want it to do unless i put the cell reference in there.
The code is listed below, cell I175 is range named "cash".
by simply subsituting "cash" for $I$175 does not work!
any ideas?
If Target.Address = ("$I$175") Then
If Range("cash").Value <> 1 Then
Range("debt_terms").Select
Selection.EntireRow.Hidden = False
Range("cash").Select
Else
If Range("cash").Value = 1 Then
Range("debt_terms").Select
Selection.EntireRow.Hidden = True
Range("cash").Select
End If
End If
End If
Thank you very much
Cheers
Nick