Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

Disable the cmdbutton index?

How to disable the cmdbutton index?
i have a command buttond name cmdbase as index from 1 to 6. I want to disable it using the code.
It doesn't work...Please help Thanks

Private sub disable()
cmdbase(index, 0, 6).enable = False
end sub
0
Whing Dela Cruz
Asked:
Whing Dela Cruz
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
you have to loop through them:

for i = 0 to 6
   cmdbase(i).enabled = false
next
0
 
Whing Dela CruzAuthor Commented:
Thanks so much to you the code is working...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now