properties window for active x controls vs form controls in vba

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I inserted form controls buttons and active x control buttons. In vba window when i click anywhere on the sheet, i see Properties-sheet1 window, and when i click on any Active X control button, a properties window for that object appears. But when I click on any Form control buttons, no properties window will show up? Why is that?

Also when I click on any Form control button and then after that click on any Control X button, excel will not show the properties window of that Active X anymore. Is like I lost them after clicking on Form control button. Why is that?

Thank you so much.
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Form controls don't have properties, per se.
What are you trying to do with the buttons?
To change the caption you would use this.
Code:
With ActiveSheet.Shapes("Button 1")
    .TextFrame.Characters.Text = "cat"
End With
 
Upvote 0
Thank you. No not to change anything. Just trying to experiment things for learning purpose. Thank you.
 
Upvote 0
Forms controls are essentially fancy shapes. To alter there appearance, you treat them as shapes. To access their values (e.g checked,unchecked for check boxes) you use the Shapes .ControlFormat property.
Note forms menu control ListBoxes and ComboBoxes have 1-based lists (rather than 0-based for ActiveX). The values for Forms menu checkboxes are xlOn and xlOff, not True/False.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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