Consulting

Results 1 to 2 of 2

Thread: Remove Tool Bar in Chart Sheet

  1. #1
    VBAX Mentor jammer6_9's Avatar
    Joined
    Apr 2007
    Location
    Saudi Arabia
    Posts
    318
    Location

    Remove Tool Bar in Chart Sheet

    Code below successfully remove specific Toolbar in a worksheet but do not work in a chart sheet? How can I?

    [vba]
    Application.CommandBars("Worksheet Menu Bar").Controls("Tools").Delete
    Application.CommandBars("Worksheet Menu Bar").Controls("Format").Delete

    [/vba]
    T-ogether
    E-veryone
    A-chieves
    M-ore


    One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.

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

    With Application.CommandBars(2)
    .Controls("Tools").Enabled = False
    .Controls("Format").Enabled = False
    End With
    [/vba]
    ____________________________________________
    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

Posting Permissions

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