Excel VBA Custom Ribbon Menu

lucasabreueng

New Member
Joined
May 16, 2022
Messages
8
Office Version
  1. 2021
Platform
  1. Windows
Guys, I need some help with a question.

I bought a worksheet which has a custom ribbon menu, where each button performs an action within the worksheet. On one of these buttons I would like to make a change.

When opening the spreadsheet with the custom ui editor, I verified that the button in question is called with the following command: onAction="ToColorAll". However, when opening the VBA Project, I didn't find any sub referring to the control of this ribbon.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Can you not ask whomever you bought the workbook from?

I'm not really sure how we can help you find something we can't see.
 
Upvote 0
Can you not ask whomever you bought the workbook from?

I'm not really sure how we can help you find something we can't see.
I no longer have contact with the seller.

The button structure is as follows:
<button id="Colors"
label="CreateSheet"
size="large"
onAction="ToColorAll"
imageMso="TableExcelSpreadsheetInsert"
screentip="You will assemble the worksheet, color the cells and insert formulas according to hierarchy" />

However, when opening the VBA project, I looked through all the Microsoft Excel Objects, Form Codes and Modules, and I didn't find any references. Maybe there's some way to make the button run a macro that I don't have in VBA that I don't know about.
 
Upvote 0
Have you tried using the Find function in the VB editor to locate the ToColorAll routine?
 
Upvote 0
Yes, I was able to find it using the find command.

But apparently all the commands are inside a library of their own. I can't see the code, because when I try to open the program it closes.
 
Upvote 0
Is this library a separate Excel file? A workbook or an add-in?
 
Upvote 0
I uploaded two images. The first shows the classes and members within the Eng library. Unable to display the definition as the program closes. The second photo shows all the references loaded, there is none missing.
 

Attachments

  • 1.PNG
    1.PNG
    99.1 KB · Views: 23
  • 2.PNG
    2.PNG
    23.9 KB · Views: 22
Upvote 0
I can't tell what the object browser is referring to. Couldn't you also expand the class modules?

The checked references do not indicate any library which may contain relevant routines, They are standard in Office or Windows.
 
Upvote 0
Initially there was an unchecked library written like this: "MISSING: Eng". However, for some reason, she disappeared from the list of references. I believe it was all pointing to that external library.

As shown in image 1 and 2, I cannot expand further, as the program closes.
 
Upvote 0
The project named Eng is visible in your screenshot, but you blocked out the file name, so the file type is not shown. Is it xlsm or xlam?

Can you view any of the standard code modules in the Eng project?
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top