[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • 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

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

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