+ Reply to Thread
Results 1 to 4 of 4

hiding forms button

  1. #1
    Registered User
    Join Date
    04-20-2005
    Posts
    24

    hiding forms button

    I guess the name says it all I'm wondering if there's anyway to hade a form button. I want to creat a macro that will hide all the forms button and protect the sheet

    when I try to just hide the columns it just moves the buttons to the right and leaves them there.

    please help a newb...

  2. #2
    Henry
    Guest

    Re: hiding forms button

    bigtonyicu,

    Private Sub CommandButton2_Click()
    CommandButton1.Visible = False
    End Sub

    and to show it again:

    Private Sub CommandButton3_Click()
    CommandButton1.Visible = True
    End Sub

    Henry

    "bigtonyicu" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I guess the name says it all I'm wondering if there's anyway to hade a
    > form button. I want to creat a macro that will hide all the forms
    > button and protect the sheet
    >
    > when I try to just hide the columns it just moves the buttons to the
    > right and leaves them there.
    >
    > please help a newb...
    >
    >
    > --
    > bigtonyicu
    > ------------------------------------------------------------------------
    > bigtonyicu's Profile:
    > http://www.excelforum.com/member.php...o&userid=22430
    > View this thread: http://www.excelforum.com/showthread...hreadid=395117
    >




  3. #3
    Registered User
    Join Date
    11-13-2015
    Location
    Philippines
    MS-Off Ver
    MS 2010
    Posts
    1

    Re: hiding forms button

    Use activesheet.shapes("Button 1").visible = false
    "Button 1" is the name of your form control button

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: hiding forms button

    azerOne, welcome to the forum

    Maybe you didn't notice, this thread is over 10 years old (don't worry, I have done that too lol)

    Thanks for the input though
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1