+ Reply to Thread
Results 1 to 2 of 2

Disable Command Button

  1. #1
    Raj
    Guest

    Disable Command Button

    I have inserted two buttons CMD1 and CMD 2. On opening the workbook, I should
    have the cmd 1 enabled and cmd2 disabled.

    How to do it?

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Raj

    2 ways

    Right click on button > select properties > Select Enable and change to flase


    From within a macro

    Private Sub CommandButton1_Click()
    CommandButton2.Enabled = False
    Your Code Here
    End Sub

+ 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