Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Private Sub xlApp_WorkbookOpen(ByVal Wb As Workbook)
  2. If Right(UCase(Wb.Name), 4) = "XLSM" Then
  3. If Wb.VBASigned = False Then
  4. MsgBox "The workbook '" & Wb.Name & "' is not signed. " & _
  5. "If there are auto-run macros in the workbook, " & _
  6. "they will not be run.", vbExclamation, "Signed Workbook Check"
  7. End If
  8. End If
  9. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement