Is it possible to get all command names present in quick access toolbar of excel 2010
I’m trying to get it in winforms and Console application
I just want to print names like (copy ,paste ,screenshot,save etc)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
A bizarre yet interesting request 🙂
I have been thinking about this question for quite sometime now. AFAIK (and I could be wrong) but you cannot interact with QAT directly like the way you want to. HOWEVER I have an alternative to suggest. See the snapshots.
Click on “More Commands”
You will be presented with the “Excel Options” dialog box.
Under “Customizations“, select “Export all customizations“
Save the file. Remember the location where you are saving it. The file will be saved as
FILENAME.exportedUIIf you open this file in notepad then it would look something like this.
Now using RegEx, you can simply find the names of the menus. Whether you want to use C# or VBA for RegEx, I leave that option to you.
HTH