0

So I have a Form Control Button NOT and ActiveX Command Button that I want to make disappear when another button is clicked. Normally if it was a ActiveX Command Button i would use:

ButtonName.Visible = False

in the code that was triggered by the other button. However I dont know how to get that work with a Form Control Button as they dont have name like a ActiveX Command Button does so far as I know?

I would just change the button I want to disappear to a ActiveX Command Button but when I do that I have issues with the buttons format changing, text sizes up when they are clicked, buttons change size when clicked, etc.


Pᴇʜ
  • 53,845
  • 9
  • 46
  • 68
Evan West
  • 53
  • 4

2 Answers2

4

You may also try

Sub Button2_Click()
    Sheets("Sheet1").Buttons("Button 1").Visible = False
End Sub
Harun24hr
  • 18,374
  • 3
  • 16
  • 28
1
.Shapes("button 1").Visible = False
Nathan_Sav
  • 8,315
  • 2
  • 12
  • 20