The Daily WTF

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Poor structure... bad logic... must... resist... urge...to fix..........................AHHHHHHHHHHHHHHHHHHHHHH!

Code:
Sub dwb_eng()
   ActiveSheet.Unprotect
   Dim i As Long
   Let i = Range("a!Q7").Value
   If i = 1 Then
      ActiveSheet.Shapes("Option Button 22").Visible = True
   Else
      ActiveSheet.Shapes("Option Button 22").Visible = False
   End If
   ActiveSheet.Protect
End Sub
 
Code:
Sub dwb_eng()
   With ActiveSheet
      .Unprotect
      .Shapes("Option Button 22").Visible = (Range("a!Q7").Value = 1)
      .Protect
   End With
End Sub
 
Code:
Sub dwb_eng()
   With ActiveSheet
      .Unprotect
      .Shapes("Option Button 22").Visible = (Range("a!Q7").Value = 1)
      .Protect
   End With
End Sub

Again, with the better code! *shakes fist* :biggrin::laugh:
 
Grrrr !!!
I was with MrKowz, neat and tidy.........and then Rorya...
Geez, I wish I could do that, 'specially that quick !!!!!!!
 
Not better, just shorter. Not the same thing at all! ;)
 

Forum statistics

Threads
1,223,765
Messages
6,174,369
Members
452,560
Latest member
Turbos

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