littlewoman
Programmer
Greetings,
Using:
excel 2003 - vba
with a little bit of knowledge
Creation:
I have created an "standalone" version of several interactive workbooks.
With standalone I mean that, in workbook_open, all sheetfunctions (scrollbars, tabs, etc.) and commandbars are disabled, my commandbar is docked at top and, to lose the systemmenu on top, the workbook is set to full screen.
The systemmenu was needed to disappear to force users to use my closebutton on the commandbar so the workbook is saved and excel is restored to standard appearance.
The sheetfunctions are needed to be turned off to hide the database on the sheets (behind the first 'title'sheet) for unauthorized use.
From this point on all is regulated by forms which are activated from my_commandbar.
All works like a dream no problems here.
Problem:
Now I found that if the workbook is minimized (by clicking on the taskbar or by the quickstartmenu) and restored back (by clicking on it in the taskbar) the full screen function is disabled. This means that the systemmenu and the formula bar reappear and that my commandbar is invisible.
Solutions tried:
I have tried to use a class event module to get fullscreen back (workbook_windowminimize as described in the helpfiles) but that doesn't work on workbook minimization.
Then I've tried to abandon FullScreen and docked my_commandbar on top below the systemmenu. Now on restore the formulabar is gone and my commandbar reappears but the systemmenu closebutton is in reach also. So I tried to redirect the closure as done with code as is used with closemode in Userform_Queryclose by placing the code in Workbook_QueryClose or Workbook_Close but that didn't work also.
Question:
Is there some way to reactivate full screen and my commandbar when workbook is restored from minimization?
Or an way to redirect the system closebutton as can be done with userform closebutton? (which in turn could also be handy for restoring excel on outside closure as by windows or taskmanager)
Thnx in advance.
Using:
excel 2003 - vba
with a little bit of knowledge
Creation:
I have created an "standalone" version of several interactive workbooks.
With standalone I mean that, in workbook_open, all sheetfunctions (scrollbars, tabs, etc.) and commandbars are disabled, my commandbar is docked at top and, to lose the systemmenu on top, the workbook is set to full screen.
The systemmenu was needed to disappear to force users to use my closebutton on the commandbar so the workbook is saved and excel is restored to standard appearance.
The sheetfunctions are needed to be turned off to hide the database on the sheets (behind the first 'title'sheet) for unauthorized use.
From this point on all is regulated by forms which are activated from my_commandbar.
All works like a dream no problems here.
Problem:
Now I found that if the workbook is minimized (by clicking on the taskbar or by the quickstartmenu) and restored back (by clicking on it in the taskbar) the full screen function is disabled. This means that the systemmenu and the formula bar reappear and that my commandbar is invisible.
Solutions tried:
I have tried to use a class event module to get fullscreen back (workbook_windowminimize as described in the helpfiles) but that doesn't work on workbook minimization.
Then I've tried to abandon FullScreen and docked my_commandbar on top below the systemmenu. Now on restore the formulabar is gone and my commandbar reappears but the systemmenu closebutton is in reach also. So I tried to redirect the closure as done with code as is used with closemode in Userform_Queryclose by placing the code in Workbook_QueryClose or Workbook_Close but that didn't work also.
Question:
Is there some way to reactivate full screen and my commandbar when workbook is restored from minimization?
Or an way to redirect the system closebutton as can be done with userform closebutton? (which in turn could also be handy for restoring excel on outside closure as by windows or taskmanager)
Thnx in advance.