View Single Post
 
Old 07-11-2014, 09:03 AM
Jey10 Jey10 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jul 2014
Location: France
Posts: 10
Jey10 is on a distinguished road
Default

Thanks again.
I read the link you gave me.
But I'm still blocked :/
I did this : To create the MACROBUTTON field, select the text that is to be clicked and press Ctrl-F9 to enclose it in a pair of field braces, thus {Text_to_be_clicked}. Then fill in the rest of the field code, so you end up with {MACROBUTTON ShowHide Text_to_be_clicked}. Once you've done that, press F9 to update the field.
I had "Afficher" and I did ctrl+f9 and put {MACROBUTTON ShowHide Afficher} and did f9.
My macro is ShowHide and is :
Sub ShowHide()
With ActiveDocument.Shapes(1)
.Visible = Not .Visible
End With
End Sub

I would like to know how link this macro with a specific picture (because I want to do other similar macros for other pictures).
And I want the picture to be hidden at the beginning.

Thanks,

Regards,
Reply With Quote