Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 914861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:47:19+00:00 2026-05-15T17:47:19+00:00

Win-XP / Excel 2003 / VBA …. I have the following piece of code

  • 0

Win-XP / Excel 2003 / VBA ….

I have the following piece of code to intercept all paste activities initiated by the user (main menu, context menu and control-V key) and send it to a Sub TrappedPaste()

....
Application.CommandBars("Edit").Controls("Paste").OnAction = "TrappedPaste"
Application.CommandBars("Edit").Controls("Paste Special...").OnAction = "TrappedPaste"
Application.CommandBars("Cell").Controls("Paste").OnAction = "TrappedPaste"
Application.CommandBars("Cell").Controls("Paste Special...").OnAction = "TrappedPaste"
Application.OnKey "^v", "TrappedPaste"
....

This code works fine. The miracle happened during worldwide rollout of the sheet, because “Edit” isn’t “Edit” and “Paste” isn’t “Paste” in German, French and all other languages between (A)leut and (Z)apotec :-O

Q:

  1. Is there a way of achieving
    independence from the language of
    the Excel User Interface, i.e. is
    there a numeric aequivalent to the
    “Paste” argument which is the same
    in all national languages?
  2. how can I find this number?
  3. is ctrl-V always ctrl-v in all local Windows languages?

Thanks in advance for any help

Kind regards MikeD

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:47:20+00:00Added an answer on May 15, 2026 at 5:47 pm

    Each control on a toolbar has an ID which can be used with the FindControl function:

    ? application.CommandBars("Edit").FindControl(msoControlButton, 22).Caption
    

    where 22 is the ID of the Paste button. As far as I was able to check, this number is the same accross different languages.
    So you can look them up in the English version and just hardcode them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Win-XP, Excel 2003 I have a range defined by a name, which is filled
I have win server 2003 and IIS 6. After publish my web app to
I have a win form UI that looks like a typical calculator. Naturally I
I have a mixed UI (Win App, WPF App, and soon an ASP.NET MVC
My PHP/MS Sql Server 2005/win 2003 Application occasionally becomes very unresponsive, the memory/cpu usage
hi i have written app on vs2008 c# (express edition) on win XP which
I have a win forms application that contains a Web Browser control. I need
I have Win 7 64. Open GL 2.0. In working with the Android download,
I have a win forms Usercontrol that is suddenly unable to build, with this
I have a win forms client that accesses a wcf service for a long

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.