Hi Jane
It sounds like you have successfully assigned the function key to the
macro, because, when you press the function key, it seems to be invoking
the macro.
But, there is a problem with the macro itself. A compile error means
that the code in the macro has some kind of error. The debugger is a
program that enables you to look at, and work on, the code to fix it up.
Try it again. If you get a message like "do you want to debug?", say
yes. You'll see the code of your macro. The debugger will have stopped
at the line with the problem.
Your macro's code will start with Sub (followed by the name you gave the
macro). And it will end with End Sub. Post back here. In your post,
paste a copy of all the code from Sub to End Sub, and let us know what
line was highlighted by the debugger as having the problem. And please
let us know what version of Word you're using.
Someone here may be able to spot the error in the code and let you know
how to fix it.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
Melbourne, Australia
Jane IA said:
I am trying to assign a macro to a function key. I go through the
steps, but when I press the function key, it tells me I have a compile
error and something about a debugger. HELP! Thanks!