activesheet.buttons options

Foo_Man_Chu

Board Regular
Joined
Jul 22, 2010
Messages
79
Hi all,

I'm working with a button in my spreadsheet and have come up with a question.
If I use the following code:

Code:
msgbox(activesheet.buttons(application.caller).name)

I get a message box that pops up with the name of the button I just clicked.
The question I have is this: what other things (methods, properties, etc) are associated with the buttons object or array or whatever it is? I've searched online but I can't find anything. For example: say that I wanted to know the number of buttons on the current sheet. Is there something like:

Code:
msgbox(ubound(activesheet.buttons))

that I could use? The lack of documentation I have been able to find on this has been maddening.

Thanks in advance!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
From the Immediate window, enter

? ActiveSheet.Buttons.Count


Open the Object Browser (F2), right-click in one of the windows, and select Show hidden members. Then enter buttons in the search dialog to see properties and methods.
 
Upvote 0
Thank you SOOO much! That resource is exactly what I was looking for! Thank you, thank you, THANK YOU!!!
 
Upvote 0
You're welcome. And I agree with you abouit the scarcity of documentation.
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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