Developer Ribbon - Form Controls

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,600
Office Version
  1. 365
Platform
  1. Windows
I have some controls embedded in a worksheet (Form Controls and not ActiveX controls) and I need to execute some macros when they are changed.

I am struggling to find the code I need to implement this. I have tried
Code:
Range("Analysis_Category") = ActiveSheet.Shapes("cbox_Category").Value
but this doesn't seem to work.


Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Perhaps :-
Code:
'If it is a ListBox or Combobox then try this :-
With ActiveSheet.Shapes("cbox_Category").ControlFormat
    Range("Analysis_Category") = .List(.ListIndex)
End With
'Or maybe :-
Range("Analysis_Category") = ActiveSheet.Shapes("cbox_Category").ControlFormat.Value
 
Upvote 0
Thanks MikeG

Managed to pick that up from somewhere after a bit more trawling.
 
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,788
Members
449,049
Latest member
greyangel23

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