Consulting

Results 1 to 3 of 3

Thread: excel 2007 cell context menu question

  1. #1
    VBAX Regular
    Joined
    Apr 2012
    Posts
    32
    Location

    excel 2007 cell context menu question

    Hi everyone,

    In excel 2007, is it possible to edit with vba the right click context menu for cells? I would like to keep enabled: cut, copy, paste, and clear contents
    but disable all other choices.

    Thanks for your help.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [VBA]With Application.CommandBars("Cell")

    .Controls("Sort").Enabled = False
    'etc.
    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

  3. #3
    VBAX Regular
    Joined
    Apr 2012
    Posts
    32
    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
  •