Craig said:
Sorry to bother you again, but I did exactly as in article.
I noticed that your document , Spell Check Sample, you can click Tool
Spelling and Grammar even when protected...but you can also alter text in the
unprotected section 2.
With my document, when I open it (template or not) Tools, Spelling and
Grammar is grayed out and not available, and I can not go anyway but the fill
in field...to run the code that you gave me I have to go into VBA code, and
press F5 to run it....but I dont want my users to do this...I want them to
press Tools, Spelling and Grammer, F7 key or something like Alt S
Can you tell what I am doing wrong?
As I wrote in my previous post:
"As a final thought, make sure you actually use the code to do the spell
check, not the built-in "Check Spelling" button on the Word toolbar.
If you want (and if you are working correctly with templates), you can
create a button and assign your macro to this button; then, copy the image
from the Word built-in button and paste it on your button. Now you can remove
the built-in one. To copy/paste a toolbar button, just right-click on the
button to access all the editing options for buttons after making sure you
are in customizing mode (Right-click any toolbar and select "Customize")."
To add a butoon to a toolbar: With your template open and unprotected,
right-click any toolbar and select "Customize", make sure you are in the
"Commands" tab. In the "Categories" area on the left, select "Macros" (Toward
the end). Then find your macro in the "Commands" area on the right. Drag and
drop your macro onto the toolbar, next to the built-in "Check Spelling"
button (The one that is greyed out once you potect your template).
Right click the built-in Spelling button and select "Copy Button Image",
then right click on your new button and select "Paste Button Image" and also
select "Default Style" so that only the image is visible. Finally, delete the
built-in button which will be useless anyway as it is greyed out...
Exit the Customizing mode, protect your template and save it.
Now the user will have a functional "Check Spelling" button and will not
know that you replaced the built-in one with your own (unless they are
familiar with macros...)