Hiding a command button

Folks,
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
Function-and-Formulas-for-Excel-.xlsm
Frank FreeseAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
You have two buttons in the same place. If you drag Home57 a bit to the right you'll see Home14A behind it and it's that button that is remaining visible when Home57 is hidden.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Frank FreeseAuthor Commented:
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
0
Frank FreeseAuthor Commented:
Simply fantastic
0
Martin LissOlder than dirtCommented:
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
0
Frank FreeseAuthor Commented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.