Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Minimize/Maximize excel restores command bars

Hello All,


I have created a custom commandbar and deleted all of excels for thi
workbook I am working in. I am going through it and trying to fin
errors (which I hate doing). If I minimize excels window then maximiz
it, excel deletes my command bar and restores excels. I can't seem t
figure out why? I have put the procedure in This Workbook, the cod
is:

Private Sub Workbook_Deactivate()
Call DeleteMenuBar
Application.DisplayFullScreen = False
Application.DisplayFormulaBar = True
Application.CommandBars("Formatting").Visible = True
Application.CommandBars("Standard").Visible = True

Private Sub Workbook_Activate()
' Show full screen
Application.DisplayFullScreen = True
Application.DisplayFormulaBar = False
Application.CommandBars("Formatting").Visible = False
Application.CommandBars("Standard").Visible = False

' Show new commandbar
Call MakeMenuBar
End Sub

Please correct me if I am wrong on this, I am a newbie to VBA. What
thought this code would do on the Deactivate is delete my custo
menubar and return excel's window to normal, and just the opposite fo
Activate.

Thanks for any help or suggestions.

Rockee
Excel 200

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Minimize/Maximize excel restores command bars

Try Workbook Open to create your menu, and Close to restore the original.
Minimize will fire the Deactivate code and of course Maximize will fire the
Activate code, as you have found out.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Minimize/Maximize excel restores command bars

Mike,

Thanks for your reply. My code for the commandbar is in the Workboo
open and workbook close. I just added this code in case the window wa
minimized or maximized but, for some odd reason when it's minimize
then maximized excel's menus are restored and mine disappears.

Rocke

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Minimize/Maximize excel restores command bars

Hmm.

Nevermind, I think that I went crazy or I'm seeing things. Now i
doesn't restore excels commandbars.

Sorry for wasting your time


Rocke

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut key minimize/maximize druus Excel Discussion (Misc queries) 1 January 11th 08 06:51 PM
how do i minimize/maximize a workbook from vba? I want to minimize it durring processing to speed things up a bit Daniel Excel Worksheet Functions 2 July 9th 05 03:35 AM
turning off minimize, maximize & close Kevin Excel Programming 4 December 15th 03 11:01 AM
Minimize and Maximize Forms Geoff[_8_] Excel Programming 5 October 18th 03 03:41 AM
Minimize workwook and then maximize UserForm Fede Querio Excel Programming 0 July 28th 03 06:44 PM


All times are GMT +1. The time now is 01:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"