(I'll be posting this in the MS Office Suite forum as that makes more sense but as there's some commonality between vbscript and VBA I thought I'd post here too...)
I need to delete a toolbar button from MANY PCs in our organisation.
I'm already due to visit each PC to run a script to gather information about each PC so my idea was to create a .DOT file with an Auto.main containing the code to delete the button if it exists.
I've found the .DOT file that created the button and it contains the following lines:
However, I can't find any info on WordBasic.RemoveButton (or is it DeleteButton?). Is this the right way to go about this task? The user's currently have Office 2000 which makes me think the code would be VBA rather than WordBasic (which, CMIIW, was dumped in favour of VBA)...
JJ
I need to delete a toolbar button from MANY PCs in our organisation.
I'm already due to visit each PC to run a script to gather information about each PC so my idea was to create a .DOT file with an Auto.main containing the code to delete the button if it exists.
I've found the .DOT file that created the button and it contains the following lines:
Code:
Rem --- Reset the standard toolbar and add in a single button
WordBasic.ViewToolbars Toolbar:="Standard", Context:=0, Reset:=1
WordBasic.AddButton "Standard", 1, 2, "CORP", "CORP", 0
WordBasic.AddButton "Standard", 2, 1, "", "", 0
However, I can't find any info on WordBasic.RemoveButton (or is it DeleteButton?). Is this the right way to go about this task? The user's currently have Office 2000 which makes me think the code would be VBA rather than WordBasic (which, CMIIW, was dumped in favour of VBA)...
JJ