To follow this a bit further:
Because AutoText must be stored in a template, not in a document, you
would be able to send this to someone else only if the "document" you
send is really a template, or if you send both the document and its
template together.
But there's nothing that says you have to use an AutoText entry in the
MacroButton field. Instead of the nested { AutoText PictureName }
field, you can just insert an inline picture as the "display text" of
the MacroButton field. Now the document, with picture and macro
(stored in the document itself) can be self-contained.
Of course, if you send someone a document that contains a macro, you
need to tell them to set the macro security level to Medium and click
the Enable Macros button when opening the file. And they have to trust
you not to send them a malicious macro. :-)
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
On Mon, 30 Oct 2006 16:05:56 +1100, "Jezebel"
<(E-Mail Removed)> wrote:
>1. Insert the picture into your document. Format it as 'Inline with text'.
>
>2. Select the picture and define it as an Autotext entry.
>
>3. Delete the picture.
>
>4. Insert a MacroButton field, with a nested reference to the AutoText
>entry --
>
>{ Macrobutton MacroName { AutoText PictureName } }
>
>where MacroName is the name of your macro and PictureName is the picture
>autotext entry.
>
>
>
>
>
>
>
>"OneSoul" <(E-Mail Removed)> wrote in message
>news:2880135E-EBD2-4844-98C3-(E-Mail Removed)...
>>I want to assign a macro to a picture in a word documents.
>>
>> Is this possible. If yes, how do I do that.
>