Eric Penfold
Active Member
- Joined
- Nov 19, 2021
- Messages
- 431
- Office Version
- 365
- Platform
- Windows
- Mobile
Why will this code not fire up when I change a cell in col 1 or col 10 it always used to?
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim wb As Workbook
Dim ws As Worksheet
Dim xRg As Range, KeyCells As Range
Dim Rng As Variant
Dim LRow As Long, LRow2 As Long
Dim WsConfig As Worksheet
Dim lngStartRow As Long, NumRows As Long
Dim Found As Boolean
Dim i As Integer
Dim x As String
With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With
Set wb = Workbooks("2023BackOrderReport.xlsm")
Set ws = wb.Worksheets("Data")
Set WsConfig = wb.Worksheets("Config")
LRow = ws.Cells(Rows.Count, 1).End(xlUp).Row
Call DeleteTbl
If Target.Column = 1 Then
Call DropDownListCode
Call CopyData
Call CreateTbl
End If
If Target.Column = 10 Then
Call EmailDepots
End If
With Application
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
End With
End Sub