Greg said:
Thank you Cindy.
At now more details
- I use Word 2000
- I'm currently having only one but big problem: how to start

- "change size" should be done in this way that user set new size (for
example: 800px x 600px)
- exactly, the images are Shapes
OK, you can get as sophisticated as you want over this. But basically there
are three parts to the issue.
1. Letting the UserForm remain open while you select a new Shape
2. Loading the properties of the current Shape into the UserForm.
3. Applying any changes you make in the Userform to the current shape.
#1 is relatively easy. You can Show the userform using the vbModeless
parameter, so that your UserForm can remain displayed while you can continue
to select and edit items within the document window.
#2 is where you can choose whether to be sophisticated or not. The simple
way is to have a command button "Get current shape" which loads up the
settings for the currently selected shape and displays them. The
sophisticated way is to use the WindowSelectionChange event of Word's
Application object (see here for how to do this "Writing application event
procedures"
http://www.word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm),
check whether the new selection is a Shape and load the userForm
accordingly.
Whichever way you handle #2, when the time comes to apply changes, you
should by now know which shape you are about to change, so you need an
"Apply changes" button which takes the changes you have made to settings in
the UserForm and apply them to the current shape.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition
www.classicvb.org