Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Coordinated Auto_Open/Close

The below Auto_Close is suppose to restore the screen
display (toolbars visible) and workbook tabs when the user
closes the window by clicking the "X" button. Auto_Clsoe
doesn't work. Can someone help me with the code? I have
included the Auto_Open the turns off full screen and tabs
in case it has something to do with why Auto_Close doesn't
work.

Sub Auto_Open()
Dim ws As Worksheet
Application.ScreenUpdating = False
Application.DisplayFullScreen = True

For Each ws In Worksheets
If ws.Visible = xlSheetVisible Then
ws.Select
Application.GoTo ws.Range("A1"), True
ActiveWindow.DisplayGridlines = False
ActiveWindow.DisplayWorkbookTabs = False
End If
Next

Worksheets("Scorecard").Select
ThisWorkbook.Colors(7) = RGB(255, 124, 128)

Application.AutoPercentEntry = True
Application.ScreenUpdating = True
End Sub

Sub Auto_Close()
ActiveWindow.DisplayFullScreen = True
ActiveWindow.DisplayWorkbookTabs = True
End Sub

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
Several (x, y) coordinated lines on one graph [email protected] Charts and Charting in Excel 1 May 17th 06 02:29 PM
Auto_Open Check date and Close DLS[_3_] Excel Programming 2 August 5th 03 05:28 AM
Auto_Open Check date and Close Tom Ogilvy Excel Programming 0 August 3rd 03 03:54 AM
Auto_Open Check date and Close Dan Smith Excel Programming 0 August 2nd 03 10:39 PM
Auto_Open Check date and Close DLS[_2_] Excel Programming 1 August 1st 03 09:21 PM


All times are GMT +1. The time now is 08:18 PM.

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

About Us

"It's about Microsoft Excel"