+ Reply to Thread
Results 1 to 6 of 6

how to disable a button

  1. #1
    Forum Contributor
    Join Date
    11-18-2007
    Posts
    111

    how to disable a button

    How can i disable or lock the button in the attached file by using vba? thanks
    Attached Files Attached Files
    Last edited by karinos57; 04-24-2009 at 10:36 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to disable a button

    This piece of code in your macro would do it:
    Please Login or Register  to view this content.
    Set that to "true" in another piece of code to make it visible again.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: how to disable a button

    Hello karinos57,

    This removes the macro and leaves the shape object visible.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    11-21-2008
    Location
    california
    Posts
    10

    Re: how to disable a button

    hi guys i posted a similar question here, im sorry i didnt just reply here but i didnt know how to upload if somone can merge them that would be cool
    thanks

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to disable a button

    You did well not to post a question in someone else's thread. We don't do that.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Contributor
    Join Date
    11-18-2007
    Posts
    111

    Re: how to disable a button

    works like a charm. thanks

+ 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