Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
OneSoul OneSoul is offline
external usenet poster
 
Posts: 1
Default How do I assign a Macro to a picture in Word

I want to assign a macro to a picture in a word documents.

Is this possible. If yes, how do I do that.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default How do I assign a Macro to a picture in Word

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" wrote in message
...
I want to assign a macro to a picture in a word documents.

Is this possible. If yes, how do I do that.


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jezebel Jezebel is offline
external usenet poster
 
Posts: 1,384
Default How do I assign a Macro to a picture in Word

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" wrote in message
...
I want to assign a macro to a picture in a word documents.

Is this possible. If yes, how do I do that.



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default How do I assign a Macro to a picture in Word

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"
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" wrote in message
...
I want to assign a macro to a picture in a word documents.

Is this possible. If yes, how do I do that.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why dont MS just f**king re-write Word from scratch? Its dogsh*t Word Hater Microsoft Word Help 33 May 5th 23 02:52 PM
I am having difficulty with deleting headers and footers LHD New Users 5 July 24th 06 01:44 AM
How do I create Word macro that will run properly using copy/past. Joye Microsoft Word Help 1 June 23rd 06 10:41 PM
glossary macro in Word? Tipuana Microsoft Word Help 7 June 10th 06 07:06 PM
hard space between words. Sandy L Microsoft Word Help 7 May 5th 06 08:25 PM


All times are GMT +1. The time now is 12:27 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"