Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a code, (below), to hide toolbars and to prevent users from tampering. I have a macro which performs some operations and then saves and closes the file. I have just realised that the X to close excel on the top right corner is still visible meaning the file can be closed without using the macro. Is it possible to also hide this feature so users must close using the macro? Thanks Private mFormulaBar Private Sub Workbook_BeforeClose() Dim oCB As CommandBar For Each oCB In Application.CommandBars oCB.Enabled = True Next oCB Application.DisplayFormulaBar = mFormulaBar End Sub Private Sub Workbook_Open() Dim oCB As CommandBar For Each oCB In Application.CommandBars oCB.Enabled = False Next oCB mFormulaBar = Application.DisplayFormulaBar Application.DisplayFormulaBar = False End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Before Close Event Hide all Worksheets then Close Application | Excel Programming | |||
Hide Close Button Excel 2007 | Excel Discussion (Misc queries) | |||
how to close a form in vba (not hide) | Excel Programming | |||
close (hide) toolbars | Excel Discussion (Misc queries) | |||
Hide all Excel tool/command bars except mine and reload on close | Excel Programming |