tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I have a bit of code that works great
I have two row merged toghther and they have a formula in it that returns "" on error,
so I don't want the macro to run if the target value is ""
please help
thanks
Tony
heres my code
I have a bit of code that works great
I have two row merged toghther and they have a formula in it that returns "" on error,
so I don't want the macro to run if the target value is ""
please help
thanks
Tony
heres my code
Code:
Private Sub Selected(ByVal Target As Range)
Application.ScreenUpdating = False
Dim Lastrow As Long
''On Error GoTo Bye1
If Not Intersect(Target, Range("AD109:AD140")) Is Nothing Then
Cancel = True
If Target.Cells.Count <> 2 Then Exit Sub
ans = Target.Offset(0, -4).Value
Application.ScreenUpdating = False
Sheets("Details").Select
Sheets("Control").Range("D2").Value = ans
Call ADD_Value
Call Get_Actions_List
Bye1:
End If
End Sub