VBA works on MS Excel 2013 but not working on MAC Excel 2011

nicholasyu

New Member
Joined
Jul 16, 2014
Messages
3
Hello Mr.Excel,

I wrote a hide rows VBA on Excel 2013 (see the code below), it is working fine. But when I opened in MAC Excel 2011 the button is not working (it become static buttons). I have the button as "form control"

Private Sub OptionButton_NA_No_Click()
Sheet1.Range("90:120").EntireRow.Hidden = True
Sheet5.Range("2:33").EntireRow.Hidden = True
End Sub
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to MrExcel.

Given your VBA code it looks like you have an ActiveX control rather than a Form Control.


Thanks for the quick reply!
I am new to Excel VBA Code. The VBA code I have it is under Module. How I change it to "form Control" or Do you have an example vba quote for hidden rows for "form Control"?
 
Upvote 0
Thanks for the quick reply!
I am new to Excel VBA Code. The VBA code I have it is under Module. How I change it to "form Control" or Do you have an example vba quote for hidden rows for "form Control"?

Okay i fixed it.
The reason it was not working because I have Group Box (Form Control) on top of my option button, it was working fine in Excel but it doesn't work in Mac 2011. So i have to group my Group box with my option button together and it works!
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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