Hi Keiron
Name a replacement subroutine the same as the function you want to disable:
Sub FileSave()
MsgBox "This function has been disabled, because I didn't like the color
of your shoes today!"
end Sub
To determine the name of the functions, select Tools | Macro. (Alt-F8) From
the drop down list box, select "Word commands" . Locate the command you want
to replace. Select the template in which you want to save the new sub from
the drop down list, then click "Create"
A new sub with the correct name will be created for you in the template you
specified, with the code necessary for normal operation. Now you can make it
do anything you want it to.
HTH and have a great day.
---
~~~~~~~~~~~~~~~~~~~~~~
Stephen Lang
401 S. Carson Street
Carson City, NV 89703
775.684.6830
GMT-8
slangatlcb state nv us
~~~~~~~~~~~~~~~~~~~~~~
To respond via e-mail:
Quote:
> Hi,
> I am writing a word macro which disables certain functions such as
printing
> and saving based on the users name which is being pulled out of an .ini
file
> generated by an application. The problem is that although the functions
are
> being disabled ok, the shortcut keys still work (e.g. CTRL+P still works).
I
> have searched high and low for a workaround to this problem but to no
avail.
> If anybody can give me a solution I would be most grateful.
> Thanks in advance,
> Kieron