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ᴇʜ
  • 56,719
  • 10
  • 49
  • 73
Evan West
  • 53
  • 4

2 Answers2

3

You may also try

Sub Button2_Click()
    Sheets("Sheet1").Buttons("Button 1").Visible = False
End Sub
Harun24hr
  • 30,391
  • 4
  • 21
  • 36
1
.Shapes("button 1").Visible = False
Nathan_Sav
  • 8,466
  • 2
  • 13
  • 20