Word - disabling a built in ribbon button

I am trying to create a word addin whereby I can disable the spell and grammar checker. I have created a document template that when you create a new document it disables the automatic checking and the F7 key.

What I need is a) to hide the button in the ribbon and b) to make the template auto-load.

NOTE the design of this addin disables the commands if there is a marker file is present (does not need contents) : C:\ModifyWord.txt

This has to work in Excel 2010 and 2007.

Can anyone advise with my two questions ?
LVL 3
AL_XResearchAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AL_XResearchAuthor Commented:
I have attached the file i was talking about but due to the restrictions of EE I had to rename the 'dotm' file to 'doc'
DisableSpellAndGrammer.doc
0
ambri5hCommented:
The link below may help you... Its for earlier versions of Word, but you should be able to modify it to suit your needs.

http://vbcity.com/forums/p/164692/703243.aspx
0
AL_XResearchAuthor Commented:
Thanks ambri5h for the quick response but I have the VBA to disable spell checking working without issue (see the attached file). What I am having an issue with is the ribbon alterations and having the template auto-load with the Word app - in the same way that addins auto-load in Excel.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

ambri5hCommented:
You can disable it using a registry key  entry that you can amend each time the file is opened and revert when you close the file...

http://blogs.technet.com/b/office_resource_kit/archive/2011/09/12/hiding-the-ribbon-in-office-2010.aspx
0
AL_XResearchAuthor Commented:
Thanks again for your comments but i don't want to hide the ribbon entirely - that would make Word unusable. I just want to hide / disable one inbuilt button i.e. the  SpellingAndGrammer button (see file).

In Excel it would be easy - just a matter of setting the 'visible' attribute or the 'getVisible' callback in the XML
0
DrTribosCommented:
You probably need to download yourself a copy of the CustomUI Editor and disable the ribbon for your specific template.

See this question
0
AL_XResearchAuthor Commented:
DrTribos: Thanks for the response. Of course I use CustomUI editor to code the XML for the ribbon. My question is : how can I control the visibility of that button in Word. The GetVisible callback does not work. I usually create custom ribbons in CustomUI for Excel - where GetVisible works no problem.
0
AL_XResearchAuthor Commented:
Anyone any thoughts ?
0
DrTribosCommented:
Hi - I'm sorry, I missed seeing your follow-up...  

To be clear: You want to hide a button on a built in tab on the word ribbon.

I am not sure this is possible - I have a similar need.

I think you might have to use the "start from scratch" option in the XML and then rebuild the ribbon manually in the XML.  I think you can add the individual built-in components manually.

If you have not already, look at start from scratch.

Cheers,
0
AL_XResearchAuthor Commented:
DrTribos: Thank you so much for your response, I am afraid I didn't see it till now.

I create Custom ribbons in Excel quite often and I use StartFromScratch to clear all inbuilt items but what you suggest would be a great deal of work - to manually recreate all tabs and use the inbuilt groups.

I should point out that I have had issues using inbuilt groups in my custom backstage tabs in Excel.

Perhaps I could just hide that specific tab and re-create, that at least would cut down the work. In Excel you can disable a button without issue,
0
DrTribosCommented:
Hi - no problem,

I've looked into this some more.  Have you seen this MVPS article, I think it steps through something like what you want?  

Other than that, this seems to be a limitation of MS Word (social.msdn article).  

You are right it would be a great deal of work.  I wonder if someone has already done it? I did a quick search for a replacement ribbon for word but came up blank, mind you it was a very quick search!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
AL_XResearchAuthor Commented:
Hi DrTribos, yes I have seen the article but my point is that the tabs do not hide as they would if you where customizing the ribbon for Excel. I guess another example of two Office products working in a very different way.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.