D
dvnova
Hi there,
Software: Word 2000
I have producing a template, and I want to write some VBA to hide some
CommandBars.
I want these commandbars to be disabled when anybody develops a new
document based on my template, however they should be present if a new
document based on the Normat.dot is opened.
I have developed a new Class that takes care off all the work I want
to do with CommandBars and Menus and such, and within one of the
Subroutines have have coded:
' --- VBA CODE
CustomizationContext = ActiveDocument.AttachedTemplate
CommandBars("Tables and Borders").Enabled = False
' --- END VBA CODE
This works just as expected with the new document based on my
template, however if I then open a new document based on the
Normal.dot the "Tables and Borders" CommandBar is still missing and
can cannot be selected from VIEW | TOOLBARS either.
Is this not what I require. I need any changes to the CommandBar to
be made to documents based on my template only.
Can somebody help me understand what is going wrong?
Cheers
Donald
Software: Word 2000
I have producing a template, and I want to write some VBA to hide some
CommandBars.
I want these commandbars to be disabled when anybody develops a new
document based on my template, however they should be present if a new
document based on the Normat.dot is opened.
I have developed a new Class that takes care off all the work I want
to do with CommandBars and Menus and such, and within one of the
Subroutines have have coded:
' --- VBA CODE
CustomizationContext = ActiveDocument.AttachedTemplate
CommandBars("Tables and Borders").Enabled = False
' --- END VBA CODE
This works just as expected with the new document based on my
template, however if I then open a new document based on the
Normal.dot the "Tables and Borders" CommandBar is still missing and
can cannot be selected from VIEW | TOOLBARS either.
Is this not what I require. I need any changes to the CommandBar to
be made to documents based on my template only.
Can somebody help me understand what is going wrong?
Cheers
Donald