Forum Discussion
Names in Excel Name Manager
- Jun 02, 2026
Yes there is...
I have VBA which goes thru that deletes and adds naming...
use the code "Application.DisplayAlerts = False" at the top of the coding and on exit of the programing use "Application.DisplayAlerts = True". I expect it should also work on the "ThisWorkbook" doing something like (though it would end messages until you reset it within "Private Sub Workbook_BeforeClose(Cancel As Boolean)" or "Private Sub Workbook_Deactivate()" or simuliar.)
Private Sub Workbook_Activate()
Application.DisplayAlerts = False
end sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayAlerts = True
end sub
Yes there is...
I have VBA which goes thru that deletes and adds naming...
use the code "Application.DisplayAlerts = False" at the top of the coding and on exit of the programing use "Application.DisplayAlerts = True". I expect it should also work on the "ThisWorkbook" doing something like (though it would end messages until you reset it within "Private Sub Workbook_BeforeClose(Cancel As Boolean)" or "Private Sub Workbook_Deactivate()" or simuliar.)
Private Sub Workbook_Activate()
Application.DisplayAlerts = False
end sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayAlerts = True
end sub