Avatar of Frank Freese
Frank FreeseFlag for United States of America asked on

Hiding a command button

I have many command buttons whose Visible property is set to False. However, I have 1 particular command button whose Visible property is set to False yet it remains visible?
I have a command button related to the first command button with the following code:
Private Sub MultipleIf_Click()
   Home57.Visible = False
   Sheets("Multiple Ifs").Activate
   Sheets("Multiple Ifs").MultipleIfs.Select
End Sub

Open in new window

The object remains visible?

The location of the first command button is A57 and C57 for the second. File attached - s/b Function and Formulas for Excel Revised3.xlsm. If not please advise
Microsoft Excel

Avatar of undefined
Last Comment
Frank Freese

8/22/2022 - Mon
Martin Liss

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Frank Freese

I thought I had all those identfied but missed one.
By the way, you taught me quite a bit here and thinking I would need more help on the Main tab I think I figured out the next step I want to do. You've been awesome here and again, many thanks
Frank Freese

Simply fantastic
Martin Liss

You're welcome and once again I'm glad I was able to help. BTW I found out what was wrong by putting a breakpoint on the line that hides Home57 and then checked its visibility, and when VBA said it was hidden I knew there were only two possibilities. One, that there was more than one control by the same name (the other one would have to be on a different sheet) and two, that there were two controls in the same place.

Select the 'About Me' tab in my profile and you'll find an article on debugging among the other articles I've written. Ignore the fact that it cites VB6 since most of it applies to VBA.
Marty - MVP 2009 to 2013
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Frank Freese

I've already check the About Me and saw the Spell Check a Textbox link.
It is also good to see some at my age bracket activity involved in helping others.
I'm sure I'll be back