I'm just starting to get my head around some basic VB programming for writing macros in word... and I need help already! Can anyone tell me how best to create a toggle button macro? I want to be able to show/hide a toolbar that I've created called 'Tables'.
so far all I can work out is to open and then close the toolbar
CommandBars ("Tables").Visible = True
CommandBars ("Tables").Visible = False
but I want to be able to do it with a single button, not two.
I know it's basic, but ya gotta start somewhere!
so far all I can work out is to open and then close the toolbar
CommandBars ("Tables").Visible = True
CommandBars ("Tables").Visible = False
but I want to be able to do it with a single button, not two.
I know it's basic, but ya gotta start somewhere!