Eric Penfold
Active Member
- Joined
- Nov 19, 2021
- Messages
- 431
- Office Version
- 365
- Platform
- Windows
- Mobile
I have a situation where I am trying to use a Personal workbook macros but the event is trigged by the current open workbook. How is this possible?
VBA Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Sh.Name <> "Summary" And Sh.Name <> "Trend" And Sh.Name <> "Supplier BO" And Sh.Name <> "Diff Depot" _
And Sh.Name <> "BO WO" And Sh.Name <> "Diff Depot" Then
If Target.Column = 1 Then
If Sh.Range("AA1") = "" Then
Sh.Range("AA1") = 1
If DoubleClick = True Then
Sh.Range("AA1") = ""
Exit Sub
Else
Call Group_OrderNos
Call Fill_NSI_Cells
Call Duplicate_Delete
Call Number_To_Text_Macro
Call Format_Cells
End If
End If
End If
If Target.Column = 10 Then
If Sh.Range("AA1") = "" Then
Sh.Range("AA1") = 1
Call BO_Drop_DownList
Call BO_Reason
End If
End If
End If
End Sub