+ Reply to Thread
Results 1 to 3 of 3

Context menu of Cell

Hybrid View

  1. #1
    MadDog
    Guest

    Context menu of Cell

    Is there any way that I can change the context menu of a cell in Excel
    ?

    Thanks for all your help.


  2. #2
    RB Smissaert
    Guest

    Re: Context menu of Cell

    Yes, quite simple:

    With Application.CommandBars("Cell")

    With .Controls.Add(Type:=msoControlButton)
    .BeginGroup = True
    .Caption = "Change text to numbers in selected sheet range"
    .OnAction = "MakeNumbers"
    .FaceId = 399
    End With

    etc.


    RBS


    "MadDog" <bikash.rai@gmail.com> wrote in message
    news:1141461953.894330.139580@v46g2000cwv.googlegroups.com...
    > Is there any way that I can change the context menu of a cell in Excel
    > ?
    >
    > Thanks for all your help.
    >



  3. #3
    Bob Phillips
    Guest

    Re: Context menu of Cell

    Dim oCtl As CommandBarControl

    With Application.CommandBars("Cell")

    On Error Resume Next
    .Controls(20).Delete
    On Error GoTo 0

    With .Controls.Add(Type:=msoControlButton)
    .BeginGroup = True
    .Caption = "My Button"
    .Style = msoButtonCaption
    .OnAction = "myMacro"
    End With

    End With


    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "MadDog" <bikash.rai@gmail.com> wrote in message
    news:1141461953.894330.139580@v46g2000cwv.googlegroups.com...
    > Is there any way that I can change the context menu of a cell in Excel
    > ?
    >
    > Thanks for all your help.
    >




+ 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