The Daily WTF

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,222,629
Messages
6,167,190
Members
452,104
Latest member
jadethejade

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