Consulting

Results 1 to 3 of 3

Thread: Solved: Force Hide Formula Bar

  1. #1
    VBAX Mentor
    Joined
    Jan 2006
    Posts
    323
    Location

    Solved: Force Hide Formula Bar

    Anyone know how to force hide the formula bar when an excel file opens? I have a file that has a somewhat long formula in cell A1 and when it opens it is rather annoying because the formula in A1 covers the first few rows. I realize that I can manually turn it off from the view menu but my file is for use by others who might have the formula bar on and don't know how to turn it off.

    Thanks
    Gary

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Private Sub Workbook_Open()

    Application.DisplayFormulaBar = False
    End Sub
    [/vba]

    This is workbook event code.
    To input this code, right click on the Excel icon on the worksheet
    (or next to the File menu if you maximise your workbooks),
    select View Code from the menu, and paste the code
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor
    Joined
    Jan 2006
    Posts
    323
    Location
    Thanks XLD works great.

Posting Permissions

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