KlausW
Active Member
- Joined
- Sep 9, 2020
- Messages
- 453
- Office Version
- 2016
- Platform
- Windows
Hi every one
I use this VBA code to insert a letter into a cell and then have it run a VBA code afterwards.
But I can't get it to run can anyone help.
Any help will be appreciated.
Best regards
Klaus W
I use this VBA code to insert a letter into a cell and then have it run a VBA code afterwards.
But I can't get it to run can anyone help.
Any help will be appreciated.
Best regards
Klaus W
VBA Code:
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Count = 1 Then
If Not Intersect(Target, Range("k2:k154")) Is Nothing Then
Range("y16").Value = Target.Offset(0, -10).Value
Call Send_mail
Target.Value = "S"
End If
If Not Intersect(Target, Range("l2:l154")) Is Nothing Then
Range("aa16").Value = Target.Offset(0, -11).Value
Call Send_mail1
Target.Value = "G"
End If
End If
End Sub