+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2007
    Posts
    30

    Attach toolbar settings to particular Excel file?

    I'm wondering if there is a way to turn off options in the toolbar and layout such as hiding the Column lines, turning off certain bars, etc..and then have this attached to a certain workbook only..

    So that when that workbook is open all of those toolbar settings are used, but then when other excel files are opened it reverts back to the default toolbars..

    Thanks in advance.

  2. #2
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,447

    Re: Attach toolbar settings to particular Excel file?

    There is,but it's not recommended because if Excel crashes then your user's settings willbe messed up. Result,one unhappy user
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

  3. #3
    Registered User
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Attach toolbar settings to particular Excel file?

    What causes a crash?

    Im the only one using the files..I just hate having to turn my toolbars on and off and change them based on what I am doing..but I guess it might be the best thing to do if it crashes.

  4. #4
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,447

    Re: Attach toolbar settings to particular Excel file?

    Anything can cause a crash, I personally have my ToolBars set up as I want & maintain them that way.

    What is you want to change?

    Are you actually using Excel 2007? If you are then there are no Toolbars to alter. If not you've posted in the wrong Forum
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

  5. #5
    Registered User
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Attach toolbar settings to particular Excel file?

    I might have been confusing with my question..and yes I am using Excel 2007

    I'm referring to options such as turning off the gridlines, or hiding the toolbar altogether, etc.

    Some documents I want some options to show.

    To simplify just say I had two documents that I use, one I want gridlines the other I don't..is there a way to make each document save the settings I change (gridlines showing) in each..or is this cross all excel only.

    This is a rather simple example but it better explains what I meant, I think.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944

    Re: Attach toolbar settings to particular Excel file?

    Depending on exactly what you want to do you maybe able to use vba code.

    If you place this in your file it will turn gridlines off for that file.

    Code:
    Private Sub Workbook_Open()
        
        With Application.CommandBars
            If .GetPressedMso("ViewGridlinesToggleExcel") Then
                .ExecuteMso "ViewGridlinesToggleExcel"
            End If
        End With
    
    End Sub
    Or you may need to use Ribbonx xml to fully control the ribbon.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Moderator romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Alibi
    MS-Off Ver
    All
    Posts
    8,262

    Re: Attach toolbar settings to particular Excel file?

    The gridlines settings is specific to each sheet in a workbook and is saved with that workbook.
    So long, and thanks for all the fish.

  8. #8
    Registered User
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Attach toolbar settings to particular Excel file?

    Quote Originally Posted by romperstomper View Post
    The gridlines settings is specific to each sheet in a workbook and is saved with that workbook.
    Wow I could have swore I tried that, but I guess I didn't because you are correct.

    Thanks all for the help.

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.2.0