+ Reply to Thread
Results 1 to 1 of 1

Closing Code

  1. #1
    Forum Contributor
    Join Date
    12-04-2003
    Location
    Burrton, Kansas USA
    MS-Off Ver
    2003
    Posts
    162

    Closing Code

    Hi!
    I have this code in my ThisWorkbook objects to reset the Excel application before closing. All of the commands work except the formula bar command.
    Why doesn't this code display the formula bar?
    [start code]
    Sub Workbook_BeforeClose(Cancel As Boolean)
    Application.ScreenUpdating = False
    ActiveWorkbook.Save
    ActiveWorkbook.Saved = True
    With ActiveWindow
    .DisplayHeadings = True
    .DisplayOutline = True
    .DisplayWorkbookTabs = True
    End With
    ActiveWindow.DisplayWorkbookTabs = True
    Application.DisplayFormulaBar = True
    Application.DisplayStatusBar = True
    Application.CommandBars("Formatting").Visible = True
    Application.CommandBars("Drawing").Visible = True
    Application.CommandBars("Standard").Visible = True
    Application.ScreenUpdating = True
    End Sub
    [end code]
    As always any help is greatly appreciated.
    Last edited by Brian Matlack; 01-13-2006 at 04:43 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1