G
Greg Maxey
I added a New Menu to the menu bar. I named it Test Menu and added one
control named Test.
When I try to run the following code I get a Run Time Error 5 Invalid
Call or Argument:
Sub Test1()
CommandBars("Test Menu").Controls("Test").Enabled = False
End Sub
On the Table Menu I have a Control name "Table Data"
If I run:
Sub Test2()
CommandBars("Table").Controls("Table Data").Enabled = False
End Sub
It runs fine.
What could be causing the error with Test1?
Thanks.
control named Test.
When I try to run the following code I get a Run Time Error 5 Invalid
Call or Argument:
Sub Test1()
CommandBars("Test Menu").Controls("Test").Enabled = False
End Sub
On the Table Menu I have a Control name "Table Data"
If I run:
Sub Test2()
CommandBars("Table").Controls("Table Data").Enabled = False
End Sub
It runs fine.
What could be causing the error with Test1?
Thanks.