• button ID for Paste Values (NL/XL/2003)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » button ID for Paste Values (NL/XL/2003)

    Author
    Topic
    #452813

    Hello,

    I like to re-create the button ‘Paste Values’ from the ‘Edit menu’ on a new commandbar
    I want to do it bij VBA, but I’m not able find to correct ID number.
    This functions is normaly not shown in the menu, but when altering the commandbars in Excel it is selectable from the Commands tab

    Thanks in advance for your answer.

    Patrick Schouten
    The Netherlands

    Viewing 0 reply threads
    Author
    Replies
    • #1118916

      If you add the button manually, you can find the ID by typing the following in the Immediate window then pressing Enter:

      ? CommandBars(“Standard”).Controls(“Paste Values”).ID

      I get 370. You can then remove the button and write your code to add it.

      • #1122979

        Yes, this will do the trick
        Thanks again

      • #1123090

        That of course does not work on a different language of Excel.
        Download my xlmenufundict to get a listing of all commandbar Id’s of the various Office apps.

        • #1123093

          I’m aware of that, of course, but the developer could find the ID using the local language, then use the language-independent ID from then on.

          But your XLMenuFuncDict workbook is very handy – I use it frequently.

    Viewing 0 reply threads
    Reply To: button ID for Paste Values (NL/XL/2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: