Hi All,
This is my first post on here so I hope I explain myself well.
What i am looking to do is to disable my custom buttons in my custom toolbar when there is no worksheet open and as soon as ANY worksheet is loaded enable the buttons.
I have the code that enables and disables the buttons but cant find any trigger points to call this code.
This is the code i have for the two actions
&For Each Item In Application.CommandBars.Item("NameofToolbar").Controls Item.Enabled = False Next Item
Any help would be appreciated.For Each Item In Application.CommandBars.Item("NameofToolbar").Controls Item.Enabled = True Next Item
Many thanks
Mark