Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Sep 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Grey out controls (Word 97)

    I have a userform created in VBA that has three controls- OK, Change and Cancel. I would like one of my controls to be grey (unavailable) until a certain action is performed. ANy ideas how to do this in WOrd 97?
    thansk
    Andrea

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Grey out controls (Word 97)

    Set the Enabled property of the command buttons that should be grayed out to False, and set it to True in code when you need it:

    cmdOK.Enabled = True

  3. #3
    New Lounger
    Join Date
    Sep 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Grey out controls (Word 97)

    THanks Hans, IT WORKED!!!
    Excellent!
    andrea

Posting Permissions

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