Here is one instance of a button click:
VB Code:
Private Sub P11A_Click(Index As Integer) Out 888, 1 Out 888, 3 Out 888, 4 Out 890, 1 P11B.Enabled = False End Sub
P11A and P11B are the names of two CommandButtons on my UI. When I try to start the VB program with the "P11B.Enabled = False" line in I get the following error message:
"Compile Error: Method or data member not found."
Something else I found that doesn't make any sense to me is when I type the first part (P11A.) it gives me only a few autocomplete options for what can follow the ".", the are: Count, Item, LBound, Ubound.
I tried adding this line:
"P11A.Item.Enabled = False"
But it gives me the following error:
"Compile Error: Argument not Optional."
Hopefully this makes more sense to one of you than it does to me. Thanks again for the help.




Reply With Quote