H
Hiro
Hello Forum Members:
I've been looking for a solution for "Disable Restore Button on Menu Bar".
And someone gave me this code as module to try.
{code/}
Global OkToClose As Boolean
Function RemoveMenu()
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = False
Next I
End Function
Function RestoreMenu()
Dim mybar As CommandBar
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = True
Next I
End Function
{/code}
However, this removes all the menu bar (both Access built-in menu bar and
custom menu bar).
What I want to do is to disable or remove the Restore Button that is located
on the same line as the Access built-in menu bar or custom menu bar.
Is this possible?
I've been looking for a solution for "Disable Restore Button on Menu Bar".
And someone gave me this code as module to try.
{code/}
Global OkToClose As Boolean
Function RemoveMenu()
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = False
Next I
End Function
Function RestoreMenu()
Dim mybar As CommandBar
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = True
Next I
End Function
{/code}
However, this removes all the menu bar (both Access built-in menu bar and
custom menu bar).
What I want to do is to disable or remove the Restore Button that is located
on the same line as the Access built-in menu bar or custom menu bar.
Is this possible?