FrEaK_aCcIdEnT
Board Regular
- Joined
- May 1, 2012
- Messages
- 104
- Office Version
- 365
- Platform
- Windows
- Web
I am wanting to hide a command button if a condition is met. The below is giving me a type mismatch runtime error.
What am I doing wrong?
Code:
If Worksheets("Final").Range("H6:H97").Value = "" Then
WorkSheets("General").Shapes.Range(Array("Button 2")).Hidden
WorkSheets("General").Shapes.Range(Array("Button 3")).Hidden
End If
What am I doing wrong?