View Single Post
 
Old 07-11-2014, 04:41 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See attached. Double-clicking anywhere in 'Nunc viverra imperdiet enim' in the 2nd para toggles the image.

The code is written to toggle the first image in the document. If you want multiple images, controlled by multiple MACROBUTTON fields, you'll need a different Sub name for each (e.g. ShowHide1, ShowHide2, etc), referenced in the corresponding MACROBUTTON field, with the macro code referencing the applicable image # (e.g. Shapes(1), Shapes(2), etc.)

Note that the image #s are determined according to their anchor positions in the document, not their placement on the page.
Attached Files
File Type: doc TogglePic.doc (72.0 KB, 113 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote