Hi

I have recorded a simple macro in word to copy and paste an extra section of
a table if required. I would like to have a button or link in the actual
document that one could click on which would then simply paste the table.
This will be a shared document so would really need to be embedded.

Does anyone hav eany idea how I would do this, and if I have explained
properly?!

Many thanks

Re: Link to Macro in word document by Greg

Greg
Wed Oct 26 08:47:10 CDT 2005

How about a macrobutton.

CTRL+F9. In the field delimiters that appear { }. Type; MacroButton
YourMacroName

Toggle the field display. Double click to fire the named macro.


Re: Link to Macro in word document by CarrieBo

CarrieBo
Wed Oct 26 08:56:20 CDT 2005

Thanks VERY much for this....but to make it more complicated, this will be in
a protected form - and doesn't seem to let me protect the form once I have
done this? Any ideas?

Yours gratefully

Re: Link to Macro in word document by Greg

Greg
Wed Oct 26 09:07:28 CDT 2005

Adding a macrobutton shouldn't prevent you from protecting the
document. I did neglect to point out that you need to add a prompt to
the button.

{ Macrobutton YourNamedMacro "Double click to add to table"}

Are you pasting the table into an unprotected section of the document?
If not, your macro will also need code to unprotect and reprotect the
document.