PC Review


Reply
Thread Tools Rate Thread

How do I assign a Macro to a picture in Word

 
 
=?Utf-8?B?T25lU291bA==?=
Guest
Posts: n/a
 
      30th Oct 2006
I want to assign a macro to a picture in a word documents.

Is this possible. If yes, how do I do that.
 
Reply With Quote
 
 
 
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      30th Oct 2006
Why not just save the picture as an AutoText entry?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"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.


 
Reply With Quote
 
Jezebel
Guest
Posts: n/a
 
      30th Oct 2006
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.



 
Reply With Quote
 
Jay Freedman
Guest
Posts: n/a
 
      30th Oct 2006
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.

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign macro to a clip art picture Annie1904 Microsoft Word Document Management 4 25th Mar 2009 06:05 PM
Anyone know how to assign a macro to a commandbutton in word =?Utf-8?B?Q2FybG9z?= Microsoft Access Macros 2 26th Sep 2007 09:30 PM
can i assign a word macro to a specific word =?Utf-8?B?R0xT?= Microsoft Word Document Management 2 9th Nov 2004 12:24 AM
Re: Assign macro to figur in Word Dave Peterson Microsoft Excel Misc 0 17th Jul 2003 12:51 AM
Re: Assign macro to figur in Word Debra Dalgleish Microsoft Excel Misc 0 16th Jul 2003 11:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 AM.